mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
- 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]
20 lines
766 B
C++
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;
|