Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/statement.c @ 46657:6db392ac9f4e legacy-trunk
SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
#ifdefing was useless.
| author | Gerhard Häring <gh@ghaering.de> |
|---|---|
| date | Sun, 04 May 2008 12:59:57 +0000 |
| parents | a21854e510b4 |
| children | 4fe192d48960 |
line wrap: on
line diff
--- a/Modules/_sqlite/statement.c Sun May 04 11:50:53 2008 +0000 +++ b/Modules/_sqlite/statement.c Sun May 04 12:59:57 2008 +0000 @@ -100,9 +100,7 @@ { 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 @@ 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;
