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 (pythonGH-93090)

(cherry picked from commit d8395eb)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
  • Loading branch information
neonene authored and miss-islington committed Jun 10, 2022
1 parent 06340f6 commit 0ba65f4
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 0ba65f4

Please sign in to comment.