mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
06340f6226
commit
f384a8e477
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue