Skip to content

Commit

Permalink
Fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Jan 29, 2024
1 parent eb347fb commit 2b69c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

- Add preliminary support for Python 3.12b4.

- Fix error in ``OkapiIndex._search_wids`` for Python 3.10+, occurring when a
word is contained in more than 10 documents.
`#48 <https://github.com/zopefoundation/zope.index/pull/48>`_


6.0 (2023-03-24)
================
Expand Down
2 changes: 1 addition & 1 deletion src/zope/index/text/okascore.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ score(PyObject *self, PyObject *args)
return NULL;
}
d = PyTuple_GET_ITEM(d_and_f, 0);
f = (double)PyLong_AsLong(PyTuple_GET_ITEM(d_and_f, 1));
f = PyFloat_AsDouble(PyTuple_GET_ITEM(d_and_f, 1));

doclen = PyObject_GetItem(d2len, d);
if (doclen == NULL) {
Expand Down

0 comments on commit 2b69c7f

Please sign in to comment.