summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-05-12 22:19:38 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2013-05-12 22:23:33 -0700
commita760eae17e550940867d17ea890eb8254267f53d (patch)
tree5f17f44d4f55b1ccf563f9fed00c412fea653de8
parent3935878d9f3ecead42e706d0ba7bf1b9cb0fa4a3 (diff)
downloadpygobject-a760eae17e550940867d17ea890eb8254267f53d.tar.gz
Fix closure argument conversion for enum and flag in args
Replace incorrect cast and assignment of double with uint for flags and enums.
-rw-r--r--gi/pygi-closure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index 46573b7d..f30fa520 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -272,7 +272,7 @@ _pygi_closure_convert_ffi_arguments (GICallableInfo *callable_info, void **args)
break;
} else if (interface_type == GI_INFO_TYPE_ENUM ||
interface_type == GI_INFO_TYPE_FLAGS) {
- g_args[i].v_double = * (double *) args[i];
+ g_args[i].v_uint = * (guint *) args[i];
g_base_info_unref (interface);
break;
} else if (interface_type == GI_INFO_TYPE_STRUCT ||