Commit 725e4212 authored by Victor Stinner's avatar Victor Stinner

Fix compilater warnings on Windows 64-bit

parent 5ccf2ff3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment