summaryrefslogtreecommitdiff
path: root/instance.c
diff options
context:
space:
mode:
authorJoel Holdsworth <joel@airwebreathe.org.uk>2014-03-11 22:58:24 +0100
committerJoel Holdsworth <joel@airwebreathe.org.uk>2014-03-11 22:58:24 +0100
commit24a3d8d0b9b1c0d543e408261aa85e31032b90d8 (patch)
tree9d5f0c7fcf2174d7161941021965214297851cac /instance.c
parentbee57ee84753471970f9b65b34e71c54a0558768 (diff)
downloadlibsigrokdecode-24a3d8d0b9b1c0d543e408261aa85e31032b90d8.tar.gz
libsigrokdecode-24a3d8d0b9b1c0d543e408261aa85e31032b90d8.zip
Fixed g_variant_get_double copy-paste error
Diffstat (limited to 'instance.c')
-rw-r--r--instance.c2
1 files changed, 1 insertions, 1 deletions
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();