From: Joel Holdsworth Date: Tue, 11 Mar 2014 21:58:24 +0000 (+0100) Subject: Fixed g_variant_get_double copy-paste error X-Git-Tag: libsigrokdecode-0.3.0~52 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=24a3d8d0b9b1c0d543e408261aa85e31032b90d8;p=libsigrokdecode.git Fixed g_variant_get_double copy-paste error --- diff --git a/instance.c b/instance.c index e72fc96..f1282bd 100644 --- a/instance.c +++ b/instance.c @@ -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();