]> sigrok.org Git - pulseview.git/commitdiff
SAMPLERATE is a guint64
authorJonathan Dahan <redacted>
Mon, 10 Aug 2015 18:37:34 +0000 (14:37 -0400)
committerUwe Hermann <redacted>
Sun, 13 Sep 2015 17:51:50 +0000 (19:51 +0200)
This fixes bug #621.

pv/devices/device.cpp

index e33d27af08d1013da9c40c4f6440cf444cdd6922..d7a78afae546c972af6cbf0a012364118bab075a 100644 (file)
@@ -76,7 +76,7 @@ T Device::read_config(const ConfigKey *key, const T default_value)
                (*iter).second.find(sigrok::GET) == (*iter).second.end())
                return default_value;
 
-       return VariantBase::cast_dynamic<Variant<T>>(
+       return VariantBase::cast_dynamic<Glib::Variant<guint64>>(
                device_->config_get(ConfigKey::SAMPLERATE)).get();
 }