diff options
Diffstat (limited to 'Modules/_sqlite/util.c')
-rw-r--r-- | Modules/_sqlite/util.c | 2 |
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 |