Fix compilater warnings on Windows 64-bit

This commit is contained in:
Victor Stinner 2013-05-17 00:19:59 +02:00
parent 5ccf2ff3e9
commit 725e421222

View file

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