[Python-checkins] cpython: Fix compilater warnings on Windows 64-bit

victor.stinner python-checkins at python.org
Mon Jun 3 22:15:06 CEST 2013


http://hg.python.org/cpython/rev/46d8fea24490
changeset:   84018:46d8fea24490
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri May 17 00:19:59 2013 +0200
summary:
  Fix compilater warnings on Windows 64-bit

files:
  Modules/_sqlite/util.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_sqlite/util.c b/Modules/_sqlite/util.c
--- a/Modules/_sqlite/util.c
+++ b/Modules/_sqlite/util.c
@@ -132,7 +132,7 @@
     }
 # endif
 #endif
-    return PyLong_FromLong(value);
+    return PyLong_FromLong(Py_SAFE_DOWNCAST(value, sqlite_int64, long));
 }
 
 sqlite_int64

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


More information about the Python-checkins mailing list