summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-10 08:37:38 (GMT)
committerGitHub <noreply@github.com>2022-06-10 08:37:38 (GMT)
commitf384a8e477a112d241650d5d4dc4042e7cd4c969 (patch)
treec8ed8004915d61b89427e3684e58309a9424f6d3 /Modules/_sqlite
parent06340f6226cd4d0707d31eb349d26566b6a6e997 (diff)
downloadcpython-f384a8e477a112d241650d5d4dc4042e7cd4c969.zip
cpython-f384a8e477a112d241650d5d4dc4042e7cd4c969.tar.gz
cpython-f384a8e477a112d241650d5d4dc4042e7cd4c969.tar.bz2
gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit systems (GH-93090)
(cherry picked from commit d8395eb38d3d05f74a7f348da81a280ad272b8c8) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
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);
}