[pylucene-dev] FieldDoc bug
Andi Vajda
vajda at osafoundation.org
Fri Sep 8 09:55:38 PDT 2006
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..
-------------- next part --------------
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;
More information about the pylucene-dev
mailing list