1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

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
This commit is contained in:
Kamen Mazdrashki 2010-10-08 04:19:30 +03:00
parent 615482a83d
commit 76a8ae9e0d

View File

@ -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)