diff options
author | Joel Holdsworth <joel@airwebreathe.org.uk> | 2014-03-11 22:58:24 +0100 |
---|---|---|
committer | Joel Holdsworth <joel@airwebreathe.org.uk> | 2014-03-11 22:58:24 +0100 |
commit | 24a3d8d0b9b1c0d543e408261aa85e31032b90d8 (patch) | |
tree | 9d5f0c7fcf2174d7161941021965214297851cac /instance.c | |
parent | bee57ee84753471970f9b65b34e71c54a0558768 (diff) | |
download | libsigrokdecode-24a3d8d0b9b1c0d543e408261aa85e31032b90d8.tar.gz libsigrokdecode-24a3d8d0b9b1c0d543e408261aa85e31032b90d8.zip |
Fixed g_variant_get_double copy-paste error
Diffstat (limited to 'instance.c')
-rw-r--r-- | instance.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |