[pygobject] Avoid truncating value returned from g_value_info_get_value.
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Avoid truncating value returned from g_value_info_get_value.
- Date: Tue, 3 Apr 2018 18:42:08 +0000 (UTC)
commit d0051a895005c86bde2df2409f6e2123584f7963
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date: Tue Apr 3 00:00:00 2018 +0000
Avoid truncating value returned from g_value_info_get_value.
The value returned from g_value_info_get_value will be representable
by some 32-bit integer type, but there is no guarantee that signed
one will do the job.
gi/pygi-info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 8a0deaa1..d8ddcc77 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -1742,7 +1742,7 @@ PYGLIB_DEFINE_TYPE ("gi.ValueInfo", PyGIValueInfo_Type, PyGIBaseInfo);
static PyObject *
_wrap_g_value_info_get_value (PyGIBaseInfo *self)
{
- glong value;
+ gint64 value;
value = g_value_info_get_value ( (GIValueInfo *) self->info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]