[Python-checkins] r62700 - python/trunk/Modules/_sqlite/statement.c

gerhard.haering python-checkins at python.org
Sun May 4 14:59:57 CEST 2008


Author: gerhard.haering
Date: Sun May  4 14:59:57 2008
New Revision: 62700

Log:
SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
#ifdefing was useless.


Modified:
   python/trunk/Modules/_sqlite/statement.c

Modified: python/trunk/Modules/_sqlite/statement.c
==============================================================================
--- python/trunk/Modules/_sqlite/statement.c	(original)
+++ python/trunk/Modules/_sqlite/statement.c	Sun May  4 14:59:57 2008
@@ -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;


More information about the Python-checkins mailing list