]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use Py_intptr_t to store the difference between two pointers, instead of int
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 7 May 2013 22:44:15 +0000 (00:44 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 7 May 2013 22:44:15 +0000 (00:44 +0200)
Fix a compiler warning on Windows 64-bit

Objects/descrobject.c

index 3cf00d52938070dd86087fed9ffcfce3391d95d5..d4f8048fa604121ba9e103aea937bd80f642636d 100644 (file)
@@ -1009,7 +1009,7 @@ wrapper_dealloc(wrapperobject *wp)
 static PyObject *
 wrapper_richcompare(PyObject *a, PyObject *b, int op)
 {
-    int result;
+    Py_intptr_t result;
     PyObject *v;
     PyWrapperDescrObject *a_descr, *b_descr;