diff options
| author | Jerome Schneider <jschneider@entrouvert.com> | 2009-04-09 16:55:39 +0000 |
|---|---|---|
| committer | Jerome Schneider <jschneider@entrouvert.com> | 2009-04-09 16:55:39 +0000 |
| commit | 699f72e5687537dd4eded52fbe636a270a0f0580 (patch) | |
| tree | d5c77a33b8312483b1fa8f2774c2842c71a6e1be | |
| parent | ff1898352074ea8e6ab5fb5bb377618e7f8cf68f (diff) | |
| download | lasso-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
| -rw-r--r-- | bindings/java/lang.py | 2 | ||||
| -rw-r--r-- | bindings/python/wrapper_top.c | 2 | ||||
| -rw-r--r-- | lasso/registry.c | 4 |
3 files changed, 4 insertions, 4 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"); diff --git a/lasso/registry.c b/lasso/registry.c index 7fdc3bde..456de1a8 100644 --- a/lasso/registry.c +++ b/lasso/registry.c @@ -114,7 +114,7 @@ gboolean lasso_registry_functional_mapping_equal(LassoRegistryFunctionalMappingR */ guint lasso_registry_direct_mapping_hash(LassoRegistryDirectMappingRecord *record) { - return g_direct_hash((void*)(record->from_namespace + return g_direct_hash((void*)(ptrdiff_t)(record->from_namespace ^ record->from_name ^ record->to_namespace)); } @@ -129,7 +129,7 @@ guint lasso_registry_direct_mapping_hash(LassoRegistryDirectMappingRecord *recor */ guint lasso_registry_functional_mapping_hash(LassoRegistryFunctionalMappingRecord *record) { - return g_direct_hash((void*)(record->from_namespace ^ record->to_namespace)); + return g_direct_hash((void*)(ptrdiff_t)(record->from_namespace ^ record->to_namespace)); } /** |
