summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJerome Schneider <jschneider@entrouvert.com>2009-04-09 16:55:39 +0000
committerJerome Schneider <jschneider@entrouvert.com>2009-04-09 16:55:39 +0000
commit699f72e5687537dd4eded52fbe636a270a0f0580 (patch)
treed5c77a33b8312483b1fa8f2774c2842c71a6e1be /bindings
parentff1898352074ea8e6ab5fb5bb377618e7f8cf68f (diff)
downloadlasso-699f72e5687537dd4eded52fbe636a270a0f0580.tar.gz
lasso-699f72e5687537dd4eded52fbe636a270a0f0580.tar.xz
lasso-699f72e5687537dd4eded52fbe636a270a0f0580.zip
Fix build issues on amd64 / gcc 4.3
* bindings/java/lang.py: fix cast issue * bindings/python/wrapper_top.c fix type issue * lasso/registry.c fix cast issue
Diffstat (limited to 'bindings')
-rw-r--r--bindings/java/lang.py2
-rw-r--r--bindings/python/wrapper_top.c2
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");