[Python-checkins] cpython: Use Py_intptr_t to store the difference between two pointers, instead of int

victor.stinner python-checkins at python.org
Wed May 8 00:44:25 CEST 2013


http://hg.python.org/cpython/rev/8e1caaf567c4
changeset:   83678:8e1caaf567c4
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed May 08 00:44:15 2013 +0200
summary:
  Use Py_intptr_t to store the difference between two pointers, instead of int

Fix a compiler warning on Windows 64-bit

files:
  Objects/descrobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/descrobject.c b/Objects/descrobject.c
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -1009,7 +1009,7 @@
 static PyObject *
 wrapper_richcompare(PyObject *a, PyObject *b, int op)
 {
-    int result;
+    Py_intptr_t result;
     PyObject *v;
     PyWrapperDescrObject *a_descr, *b_descr;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list