Skip to content

Commit f384a8e

Browse files
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems (GH-93090)
(cherry picked from commit d8395eb) Co-authored-by: neonene <[email protected]>
1 parent 06340f6 commit f384a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ serialize_impl(pysqlite_Connection *self, const char *name)
20912091
name);
20922092
return NULL;
20932093
}
2094-
PyObject *res = PyBytes_FromStringAndSize(data, size);
2094+
PyObject *res = PyBytes_FromStringAndSize(data, (Py_ssize_t)size);
20952095
if (!(flags & SQLITE_SERIALIZE_NOCOPY)) {
20962096
sqlite3_free((void *)data);
20972097
}

0 commit comments

Comments
 (0)