[pybank] Cast the right type_info as GIStructInfo*



commit a32948091ae2dffda0e06cbaa031b03d44c1d559
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Wed May 27 16:21:49 2009 +0200

    Cast the right type_info as GIStructInfo*
---
 bank/bank-argument.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bank/bank-argument.c b/bank/bank-argument.c
index ae2371b..fb1de8e 100644
--- a/bank/bank-argument.c
+++ b/bank/bank-argument.c
@@ -322,7 +322,7 @@ pyg_argument_to_pyobject(GArgument *arg, GITypeInfo *type_info)
             dict = (PyObject **) ((char *)obj + ((PyTypeObject *) tp)->tp_dictoffset);
             *dict = NULL;
 
-            size = g_struct_info_get_size ((GIStructInfo*)type_info);
+            size = g_struct_info_get_size ((GIStructInfo*)interface_info);
             buffer = PyBuffer_FromReadWriteMemory(arg->v_pointer, size);
 
             PyObject_SetAttrString(obj, "__buffer__", buffer);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]