Skip to content

Commit fe74019

Browse files
committed
Fix compilater warnings on Windows 64-bit
1 parent 0cbc063 commit fe74019

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_sqlite/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ _pysqlite_long_from_int64(sqlite_int64 value)
132132
}
133133
# endif
134134
#endif
135-
return PyLong_FromLong(value);
135+
return PyLong_FromLong(Py_SAFE_DOWNCAST(value, sqlite_int64, long));
136136
}
137137

138138
sqlite_int64

0 commit comments

Comments
 (0)