]> sigrok.org Git - libsigrokdecode.git/commitdiff
Fixed g_variant_get_double copy-paste error
authorJoel Holdsworth <redacted>
Tue, 11 Mar 2014 21:58:24 +0000 (22:58 +0100)
committerJoel Holdsworth <redacted>
Tue, 11 Mar 2014 21:58:24 +0000 (22:58 +0100)
instance.c

index e72fc966104d843e68aa5579d76780f6799bec9b..f1282bd3b41e97710ae39ac91e78484e4d0e0aa7 100644 (file)
@@ -141,7 +141,7 @@ SRD_API int srd_inst_option_set(struct srd_decoder_inst *di,
                 goto err_out;
             }
         } else if (g_variant_is_of_type(value, G_VARIANT_TYPE_DOUBLE)) {
-            val_double = g_variant_get_int64(value);
+            val_double = g_variant_get_double(value);
             if (!(py_optval = PyFloat_FromDouble(val_double))) {
                 /* ValueError Exception */
                 PyErr_Clear();