summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-10-08 04:19:30 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-10-08 23:36:54 +0000
commit76a8ae9e0db0340bfa96c428d55afe9b885977e0 (patch)
tree8a4dfc3c2fc6344a867b7ac1964a47cf6a8d5095
parent615482a83d6c18ead7d18624f157170effdebdf8 (diff)
downloadsamba-76a8ae9e0db0340bfa96c428d55afe9b885977e0.tar.gz
samba-76a8ae9e0db0340bfa96c428d55afe9b885977e0.tar.bz2
samba-76a8ae9e0db0340bfa96c428d55afe9b885977e0.zip
pytalloc: Fix warning that we are subtracting void* pointers
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri Oct 8 23:36:54 UTC 2010 on sn-devel-104
-rw-r--r--lib/talloc/pytalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index bea6961efc..b0b7394875 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -109,7 +109,7 @@ int py_talloc_default_cmp(PyObject *_obj1, PyObject *_obj2)
if (obj1->ob_type != obj2->ob_type)
return (obj1->ob_type - obj2->ob_type);
- return (py_talloc_get_ptr(obj1) - py_talloc_get_ptr(obj2));
+ return ((char *)py_talloc_get_ptr(obj1) - (char *)py_talloc_get_ptr(obj2));
}
static void py_cobject_talloc_free(void *ptr)