diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-04-28 11:09:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-04-28 11:09:47 (GMT) |
commit | 8493a04e0f5163362e2bfa7a113baa400db96110 (patch) | |
tree | 5e676f15dc4de5fea109bb8551cf417dbc5b3002 /Modules/_sqlite/util.c | |
parent | 68915d75108e924d1ff74e707444c0d3ab405186 (diff) | |
download | cpython-8493a04e0f5163362e2bfa7a113baa400db96110.zip cpython-8493a04e0f5163362e2bfa7a113baa400db96110.tar.gz cpython-8493a04e0f5163362e2bfa7a113baa400db96110.tar.bz2 |
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
This bug was already fixed in issue14572 for 2.7 only and then it was
backported back from 3.3 in issue17073.
Diffstat (limited to 'Modules/_sqlite/util.c')
-rw-r--r-- | Modules/_sqlite/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_sqlite/util.c b/Modules/_sqlite/util.c index 5f06b66..a24dd8c 100644 --- a/Modules/_sqlite/util.c +++ b/Modules/_sqlite/util.c @@ -111,7 +111,7 @@ int _pysqlite_seterror(sqlite3* db, sqlite3_stmt* st) #endif PyObject * -_pysqlite_long_from_int64(sqlite3_int64 value) +_pysqlite_long_from_int64(sqlite_int64 value) { #ifdef HAVE_LONG_LONG # if SIZEOF_LONG_LONG < 8 @@ -135,7 +135,7 @@ _pysqlite_long_from_int64(sqlite3_int64 value) return PyInt_FromLong(value); } -sqlite3_int64 +sqlite_int64 _pysqlite_long_as_int64(PyObject * py_val) { int overflow; @@ -158,8 +158,8 @@ _pysqlite_long_as_int64(PyObject * py_val) #endif return value; } - else if (sizeof(value) < sizeof(sqlite3_int64)) { - sqlite3_int64 int64val; + else if (sizeof(value) < sizeof(sqlite_int64)) { + sqlite_int64 int64val; if (_PyLong_AsByteArray((PyLongObject *)py_val, (unsigned char *)&int64val, sizeof(int64val), IS_LITTLE_ENDIAN, 1 /* signed */) >= 0) { |