On Fri, 8 Sep 2006, Yura Smolsky wrote:

this example produces Runtime error on windows and make process
aborted on linux:

from PyLucene import *

fd = FieldDoc(10, 10.0)

Yep, the 'break' statements were missing.
The attached patch fixes it.
I've also checked in the fix.

Thanks !

Andi..
Index: lucene.cpp
===================================================================
--- lucene.cpp  (revision 291)
+++ lucene.cpp  (working copy)
@@ -9587,6 +9587,7 @@
         {
             INT_CALL(fd = new org::apache::lucene::search::FieldDoc(doc, 
(jfloat) score));
             self->object = fd;
+            break;
         }
         PyErr_SetArgsError((PyObject *) self, "__init__", args);
         return -1;
@@ -9598,6 +9599,7 @@
         {
             INT_CALL(fd = new org::apache::lucene::search::FieldDoc(doc, 
(jfloat) score, comparables));
             self->object = fd;
+            break;
         }
         PyErr_SetArgsError((PyObject *) self, "__init__", args);
         return -1;
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to