ports/devel/py-jcc/files/patch-jcc3_sources_JArray.cpp
Danilo G. Baio 47f0128aba devel/py-jcc: Update to 3.0, Take MAINTAINER'ship
- Now with Python 3.3+ support [1]
- Add LICENSE_FILE
- Move to autoplist (When built in different Python Major Versions,
  pkg-plist changes)

Changes:	http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc/CHANGES [1]
2017-08-13 12:52:37 +00:00

20 lines
766 B
C++

--- 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;