diff options
author | Gerhard Häring <gh@ghaering.de> | 2008-05-04 12:59:57 (GMT) |
---|---|---|
committer | Gerhard Häring <gh@ghaering.de> | 2008-05-04 12:59:57 (GMT) |
commit | ffa3357d5227ff746ba243fa5cd720f397ac7bec (patch) | |
tree | 3e30454e4fe7b92c45c88fc4494ce1d23c03b8b0 /Modules | |
parent | 7e3ab45512c7aebb100e4e7f4f51112bb14bbbed (diff) | |
download | cpython-ffa3357d5227ff746ba243fa5cd720f397ac7bec.zip cpython-ffa3357d5227ff746ba243fa5cd720f397ac7bec.tar.gz cpython-ffa3357d5227ff746ba243fa5cd720f397ac7bec.tar.bz2 |
SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
#ifdefing was useless.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sqlite/statement.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c index d8d9114..0e77668 100644 --- a/Modules/_sqlite/statement.c +++ b/Modules/_sqlite/statement.c @@ -100,9 +100,7 @@ int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObjec { int rc = SQLITE_OK; long longval; -#ifdef HAVE_LONG_LONG PY_LONG_LONG longlongval; -#endif const char* buffer; char* string; Py_ssize_t buflen; @@ -157,13 +155,11 @@ int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObjec longval = PyInt_AsLong(parameter); rc = sqlite3_bind_int64(self->st, pos, (sqlite_int64)longval); break; -#ifdef HAVE_LONG_LONG case TYPE_LONG: longlongval = PyLong_AsLongLong(parameter); /* in the overflow error case, longlongval is -1, and an exception is set */ rc = sqlite3_bind_int64(self->st, pos, (sqlite_int64)longlongval); break; -#endif case TYPE_FLOAT: rc = sqlite3_bind_double(self->st, pos, PyFloat_AsDouble(parameter)); break; |