Skip to content

Commit daa0858

Browse files
committed
Fix failed test cases in Windows
- Fix error with LONG type when put row
1 parent 431566c commit daa0858

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gstype_python.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,13 +1466,13 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
14661466
return false;
14671467
}
14681468
if (longValue) {
1469-
PyList_SetItem(outList, i, PyLong_FromLong(longValue));
1469+
PyList_SetItem(outList, i, SWIG_From_dec(long long)(longValue));
14701470
} else if (checkNullField(row, i)) {
14711471
// NULL value
14721472
Py_INCREF(Py_None);
14731473
PyList_SetItem(outList, i, Py_None);
14741474
} else {
1475-
PyList_SetItem(outList, i, PyLong_FromLong(longValue));
1475+
PyList_SetItem(outList, i, SWIG_From_dec(long long)(longValue));
14761476
}
14771477
break;
14781478
}
@@ -1806,7 +1806,7 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
18061806
return false;
18071807
}
18081808
for (int j = 0; j < size; j++) {
1809-
PyList_SetItem(list, j, PyLong_FromLong(longArr[j]));
1809+
PyList_SetItem(list, j, SWIG_From_dec(long long)(longArr[j]));
18101810
}
18111811
if (size) {
18121812
PyList_SetItem(outList, i, list);

0 commit comments

Comments
 (0)