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

This commit is contained in:
neonene 2022-06-10 17:10:04 +09:00 committed by GitHub
parent 30610d2837
commit d8395eb38d
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);
}