Skip to content

Commit

Permalink
pythongh-92434: Silence compiler warning in Modules/_sqlite/connectio…
Browse files Browse the repository at this point in the history
…n.c on 32-bit systems (python#93090)
  • Loading branch information
neonene authored Jun 10, 2022
1 parent 30610d2 commit d8395eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ serialize_impl(pysqlite_Connection *self, const char *name)
name);
return NULL;
}
PyObject *res = PyBytes_FromStringAndSize(data, size);
PyObject *res = PyBytes_FromStringAndSize(data, (Py_ssize_t)size);
if (!(flags & SQLITE_SERIALIZE_NOCOPY)) {
sqlite3_free((void *)data);
}
Expand Down

0 comments on commit d8395eb

Please sign in to comment.