gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems (GH-93090)

(cherry picked from commit d8395eb38d)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-06-10 01:37:38 -07:00 committed by GitHub
parent 06340f6226
commit f384a8e477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}