[pygobject] Fix marshaling Python to FFI return value for enum and flags
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Fix marshaling Python to FFI return value for enum and flags
- Date: Sun, 12 May 2013 03:32:57 +0000 (UTC)
commit c4e1112840004af264b4f2a052f333ea38f95cb6
Author: Simon Feltman <sfeltman src gnome org>
Date: Sat May 11 20:28:22 2013 -0700
Fix marshaling Python to FFI return value for enum and flags
Add break to GI_TYPE_TAG_INTERFACE case. This was falling through causing
assignment of arg.v_pointer to the ffi return arg.
gi/pygi-closure.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index e70fd86..46573b7 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -99,6 +99,7 @@ _pygi_closure_assign_pyobj_to_retval (gpointer retval, PyObject *object,
}
g_base_info_unref (interface_info);
+ break;
}
default:
*(ffi_arg *) retval = (ffi_arg) arg.v_pointer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]