Skip to content

Commit

Permalink
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on…
Browse files Browse the repository at this point in the history
… 32-bit systems (GH-93090)

(cherry picked from commit d8395eb)

Co-authored-by: neonene <[email protected]>
  • Loading branch information
miss-islington and neonene authored Jun 10, 2022
1 parent 06340f6 commit f384a8e
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 f384a8e

Please sign in to comment.