summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-02-12 20:13:13 (GMT)
committerGitHub <noreply@github.com>2024-02-12 20:13:13 (GMT)
commit7861dfd26a41e40c2b4361eb0bb1356b9b4a064b (patch)
treeefedf1257dbc2e4b6be5aaab340194d644d57a0b /Modules/_sqlite
parenta82fbc13d0e352b9af7d7ffbef4bc04cf635f07f (diff)
downloadcpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.zip
cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.gz
cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.bz2
gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes functions (GH-114886)
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/util.c b/Modules/_sqlite/util.c
index 833a666..9e8613e 100644
--- a/Modules/_sqlite/util.c
+++ b/Modules/_sqlite/util.c
@@ -162,7 +162,7 @@ _pysqlite_long_as_int64(PyObject * py_val)
sqlite_int64 int64val;
if (_PyLong_AsByteArray((PyLongObject *)py_val,
(unsigned char *)&int64val, sizeof(int64val),
- IS_LITTLE_ENDIAN, 1 /* signed */) >= 0) {
+ IS_LITTLE_ENDIAN, 1 /* signed */, 0) >= 0) {
return int64val;
}
}