summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorneonene <53406459+neonene@users.noreply.github.com>2022-06-10 08:10:04 (GMT)
committerGitHub <noreply@github.com>2022-06-10 08:10:04 (GMT)
commitd8395eb38d3d05f74a7f348da81a280ad272b8c8 (patch)
tree90c5b85bb30470f64d17d810c5aedf5e5fbf6a7d /Modules/_sqlite
parent30610d28374f5a9698d456cebf3ae496ac01af51 (diff)
downloadcpython-d8395eb38d3d05f74a7f348da81a280ad272b8c8.zip
cpython-d8395eb38d3d05f74a7f348da81a280ad272b8c8.tar.gz
cpython-d8395eb38d3d05f74a7f348da81a280ad272b8c8.tar.bz2
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems (#93090)
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 7f7de8e..4ac0078 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -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);
}