Skip to content

Commit d8395eb

Browse files
authored
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems (#93090)
1 parent 30610d2 commit d8395eb

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)