summaryrefslogtreecommitdiff
path: root/devel/py-jcc/files/patch-jcc3_sources_JArray.cpp
blob: e2c0a2ca289e2e1aaa1bbc213ac2eed6de2d123f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- jcc3/sources/JArray.cpp.orig	2017-08-13 00:38:32 UTC
+++ jcc3/sources/JArray.cpp
@@ -312,7 +312,7 @@ static PyObject *seq_concat(U *self, PyObject *arg)
     PyObject *list = toSequence<U>(self);
 
     if (list != NULL &&
-        PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0)
+        PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) == NULL)
     {
         Py_DECREF(list);
         return NULL;
@@ -327,7 +327,7 @@ static PyObject *seq_repeat(U *self, Py_ssize_t n)
     PyObject *list = toSequence<U>(self);
 
     if (list != NULL &&
-        PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0)
+        PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) == NULL)
     {
         Py_DECREF(list);
         return NULL;