]> sigrok.org Git - pulseview.git/commitdiff
deviceoptions.cpp make compile error on 32 bit systems
authorJoshua Frkuska <redacted>
Tue, 16 Apr 2013 14:11:09 +0000 (23:11 +0900)
committerJoel Holdsworth <redacted>
Tue, 16 Apr 2013 17:20:38 +0000 (18:20 +0100)
 fixes compile error: error: no matching function for call to ‘pv::prop::binding::DeviceOptions::bind_int(const QString&, const int&, const char [2], std::pair<long int, long int>)’

Signed-off-by: Joshua Frkuska <redacted>
pv/prop/binding/deviceoptions.cpp

index f71cbac2a42aeb57a3db42d4377b973346e679d5..1ce08eb8a14d7c9b6cc4a167625e28a5606f5051 100644 (file)
@@ -73,7 +73,7 @@ DeviceOptions::DeviceOptions(struct sr_dev_inst *sdi) :
                        break;
 
                case SR_CONF_CAPTURE_RATIO:
                        break;
 
                case SR_CONF_CAPTURE_RATIO:
-                       bind_int(name, key, "%", make_pair(0L, 100L));
+                       bind_int(name, key, "%", pair<int64_t, int64_t>(0, 100));
                        break;
 
                case SR_CONF_PATTERN_MODE:
                        break;
 
                case SR_CONF_PATTERN_MODE: