diff options
Diffstat (limited to 'bindings')
| -rw-r--r-- | bindings/java/lang.py | 2 | ||||
| -rw-r--r-- | bindings/python/wrapper_top.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bindings/java/lang.py b/bindings/java/lang.py index 72dcdd78..9e93dfd8 100644 --- a/bindings/java/lang.py +++ b/bindings/java/lang.py @@ -535,7 +535,7 @@ protected static native void destroy(long cptr); # Return if m.return_type: if m.name.endswith('_new'): - print >> fd, ' ret = (jlong)(int) return_value;' + print >> fd, ' ret = (jlong)(ptrdiff_t) return_value;' else: options = {} if m.return_owner: diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index c703b927..333d4b88 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -118,7 +118,7 @@ free_list(GList **a_list, GFunc free_help) { static void set_hashtable_of_pygobject(GHashTable *a_hash, PyObject *dict) { PyObject *key, *value; - int i; + Py_ssize_t i; if (! a_hash) { PyErr_SetString(PyExc_TypeError, "hashtable does not exist"); |
