[pygobject/pygobject-3-8] Fix closure argument conversion for enum and flag in args
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-8] Fix closure argument conversion for enum and flag in args
- Date: Mon, 13 May 2013 05:25:24 +0000 (UTC)
commit a760eae17e550940867d17ea890eb8254267f53d
Author: Simon Feltman <sfeltman src gnome org>
Date: Sun May 12 22:19:38 2013 -0700
Fix closure argument conversion for enum and flag in args
Replace incorrect cast and assignment of double with uint for flags
and enums.
gi/pygi-closure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index 46573b7..f30fa52 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 ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]