summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-05-16 22:19:59 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-05-16 22:19:59 (GMT)
commit725e4212229bf68f87d4f66c1815d444ddfc7aa5 (patch)
treee99937fb2fa09f68185afe408f8fe19e693a189c /Modules
parent5ccf2ff3e9a72bccc7a8a8977106c03544f7ce6b (diff)
downloadcpython-725e4212229bf68f87d4f66c1815d444ddfc7aa5.zip
cpython-725e4212229bf68f87d4f66c1815d444ddfc7aa5.tar.gz
cpython-725e4212229bf68f87d4f66c1815d444ddfc7aa5.tar.bz2
Fix compilater warnings on Windows 64-bit
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/util.c b/Modules/_sqlite/util.c
index d88bc3f..312fe3b 100644
--- a/Modules/_sqlite/util.c
+++ b/Modules/_sqlite/util.c
@@ -132,7 +132,7 @@ _pysqlite_long_from_int64(sqlite_int64 value)
}
# endif
#endif
- return PyLong_FromLong(value);
+ return PyLong_FromLong(Py_SAFE_DOWNCAST(value, sqlite_int64, long));
}
sqlite_int64