diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-04-28 14:11:55 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-04-28 14:11:55 +0300 |
commit | 5f99fa728760588f1e11c37db25b54fd3cde2560 (patch) | |
tree | a93677f9d759026a4cb96c80cafb488436063376 /Modules/_sqlite/util.c | |
parent | 1f6ee73c1e6338ff9494dea5a5473d9266eb66f5 (diff) | |
parent | d160b12292be2f7eeb824cc4b2b6d1d84dbf8b1a (diff) | |
download | cpython-git-5f99fa728760588f1e11c37db25b54fd3cde2560.tar.gz |
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.
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 a1a462c8e5..d88bc3fc53 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 PyLong_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) { |