Commits

Brian Kearns committed 7a7fe66

fix sqlite ints on 32bit

  • Participants
  • Parent commits 42658a0

Comments (0)

Files changed (1)

lib_pypy/_sqlite3.py

                     val = None
                 elif typ == _lib.SQLITE_INTEGER:
                     val = _lib.sqlite3_column_int64(self._statement, i)
+                    val = int(val)
                 elif typ == _lib.SQLITE_FLOAT:
                     val = _lib.sqlite3_column_double(self._statement, i)
                 elif typ == _lib.SQLITE_TEXT:
             val = None
         elif typ == _lib.SQLITE_INTEGER:
             val = _lib.sqlite3_value_int64(params[i])
+            val = int(val)
         elif typ == _lib.SQLITE_FLOAT:
             val = _lib.sqlite3_value_double(params[i])
         elif typ == _lib.SQLITE_TEXT: