You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2017/10/18 02:39:26 UTC

svn commit: r1812455 - in /lucene/pylucene/trunk/jcc: CHANGES jcc2/sources/JArray.cpp jcc3/sources/JArray.cpp

Author: vajda
Date: Wed Oct 18 02:39:26 2017
New Revision: 1812455

URL: http://svn.apache.org/viewvc?rev=1812455&view=rev
Log:
 - fixed bug PYLUCENE-38 (Aric Coady)

Modified:
    lucene/pylucene/trunk/jcc/CHANGES
    lucene/pylucene/trunk/jcc/jcc2/sources/JArray.cpp
    lucene/pylucene/trunk/jcc/jcc3/sources/JArray.cpp

Modified: lucene/pylucene/trunk/jcc/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/CHANGES?rev=1812455&r1=1812454&r2=1812455&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Wed Oct 18 02:39:26 2017
@@ -4,6 +4,7 @@ Version 3.0 ->
  - reworked type construction to use PyType_FromSpecWithBases (Python 3)
  - added 'm' suffix to linux -lpython statement for shared jcc lib
  - fixed bug with using split instead of rpartition on path (Petrus Hyvönen)
+ - fixed bug PYLUCENE-38 (Aric Coady)
  - 
 
 Version 2.23 -> 3.0

Modified: lucene/pylucene/trunk/jcc/jcc2/sources/JArray.cpp
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc2/sources/JArray.cpp?rev=1812455&r1=1812454&r2=1812455&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc2/sources/JArray.cpp (original)
+++ lucene/pylucene/trunk/jcc/jcc2/sources/JArray.cpp Wed Oct 18 02:39:26 2017
@@ -312,7 +312,7 @@ static PyObject *seq_concat(U *self, PyO
     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_
     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;

Modified: lucene/pylucene/trunk/jcc/jcc3/sources/JArray.cpp
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc3/sources/JArray.cpp?rev=1812455&r1=1812454&r2=1812455&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc3/sources/JArray.cpp (original)
+++ lucene/pylucene/trunk/jcc/jcc3/sources/JArray.cpp Wed Oct 18 02:39:26 2017
@@ -312,7 +312,7 @@ static PyObject *seq_concat(U *self, PyO
     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_
     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;