From 24a3d8d0b9b1c0d543e408261aa85e31032b90d8 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Tue, 11 Mar 2014 22:58:24 +0100 Subject: Fixed g_variant_get_double copy-paste error --- instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2