]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
take2 on #1781.
authorGaëtan de Menten <gdementen@gmail.com>
Tue, 27 Apr 2010 18:57:48 +0000 (20:57 +0200)
committerGaëtan de Menten <gdementen@gmail.com>
Tue, 27 Apr 2010 18:57:48 +0000 (20:57 +0200)
lib/sqlalchemy/cextension/resultproxy.c

index 400fd16fc630bdbfd6f1e00fb7f46694b8ff6fc3..7404b9ed20977a0cc86a2d50b7ff4f3241976bfe 100644 (file)
@@ -12,6 +12,7 @@ the MIT License: http://www.opensource.org/licenses/mit-license.php
 typedef int Py_ssize_t;
 #define PY_SSIZE_T_MAX INT_MAX
 #define PY_SSIZE_T_MIN INT_MIN
+typedef Py_ssize_t (*lenfunc)(PyObject *);
 #endif
 
 
@@ -162,7 +163,7 @@ BaseRowProxy_processvalues(PyObject *values, PyObject *processors, int astuple)
         PyErr_Format(PyExc_RuntimeError,
             "number of values in row (%d) differ from number of column "
             "processors (%d)",
-            num_values, num_processors);
+            (int)num_values, (int)num_processors);
         return NULL;
     }