aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/helper.cpp')
-rw-r--r--sources/shiboken2/libshiboken/helper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/sources/shiboken2/libshiboken/helper.cpp b/sources/shiboken2/libshiboken/helper.cpp
index 85ae2b133..fac72d56f 100644
--- a/sources/shiboken2/libshiboken/helper.cpp
+++ b/sources/shiboken2/libshiboken/helper.cpp
@@ -109,9 +109,8 @@ int *sequenceToIntArray(PyObject *obj, bool zeroTerminated)
PyErr_SetString(PyExc_TypeError, "Sequence of ints expected");
delete[] array;
return nullptr;
- } else {
- array[i] = PyInt_AsLong(item);
}
+ array[i] = PyInt_AsLong(item);
}
if (zeroTerminated)