[pygobject/pygobject-3-8] Fix marshaling Python to FFI return value for enum and flags



commit 3935878d9f3ecead42e706d0ba7bf1b9cb0fa4a3
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]