[pygobject/invoke-rewrite] [gi] fix out marshalling for a couple of int types
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/invoke-rewrite] [gi] fix out marshalling for a couple of int types
- Date: Wed, 19 Jan 2011 17:06:23 +0000 (UTC)
commit 18b84767db1d66e3d6f09067ab19ffd4b82539ca
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Jan 19 12:05:45 2011 -0500
[gi] fix out marshalling for a couple of int types
gi/pygi-argument.c | 2 +-
gi/pygi-cache.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index bf4a7b7..a59d24e 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -3303,7 +3303,7 @@ _pygi_marshal_out_uint64 (PyGIInvokeState *state,
PyGIArgCache *arg_cache,
GIArgument *arg)
{
- PyObject *py_obj = PyLong_FromLongLong(arg->v_uint64);
+ PyObject *py_obj = PyLong_FromUnsignedLongLong(arg->v_uint64);
return py_obj;
}
diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c
index ec8d447..5b575ba 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -954,7 +954,7 @@ _arg_cache_out_new_from_type_info (GITypeInfo *type_info,
arg_cache = _arg_cache_new_for_out_uint8();
break;
case GI_TYPE_TAG_INT16:
- arg_cache = _arg_cache_new_for_out_uint16();
+ arg_cache = _arg_cache_new_for_out_int16();
break;
case GI_TYPE_TAG_UINT16:
arg_cache = _arg_cache_new_for_out_uint16();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]