Skip to content

Commit dd94deb

Browse files
committed
correct the comparison sentence for numRowOfCountainer
1 parent 4777d85 commit dd94deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gstype_python.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
20122012
ColumnInfoList infoListTmp;
20132013
while (PyDict_Next($input, &si, &containerName, &listRowContainer)) {
20142014
int numRowOfContainer = (int)PyInt_AsLong(PyLong_FromSsize_t(PyList_Size(listRowContainer)));
2015-
if (numRowOfContainer < 0) {
2015+
if (numRowOfContainer <= 0) {
20162016
PyErr_SetString(PyExc_ValueError, "Num rows of container is invalid.");
20172017
SWIG_fail;
20182018
}

0 commit comments

Comments
 (0)