Fix compilation error on Windows.

This commit is contained in:
INADA Naoki
2014-04-28 15:37:12 +09:00
parent 2006505f75
commit f1608b7097

View File

@ -434,11 +434,11 @@ _mysql_ResultObject_Initialize(
} }
else if (PySequence_Check(fun)) { else if (PySequence_Check(fun)) {
long flags = fields[i].flags; long flags = fields[i].flags;
PyObject *fun2=NULL;
int j, n2=PySequence_Size(fun); int j, n2=PySequence_Size(fun);
if (fields[i].charsetnr != 63) { /* maaagic */ if (fields[i].charsetnr != 63) { /* maaagic */
flags &= ~BINARY_FLAG; flags &= ~BINARY_FLAG;
} }
PyObject *fun2=NULL;
for (j=0; j<n2; j++) { for (j=0; j<n2; j++) {
PyObject *t = PySequence_GetItem(fun, j); PyObject *t = PySequence_GetItem(fun, j);
if (!t) { if (!t) {