pyLZJD
pyLZJD copied to clipboard
Mark compare as noexcept to avoid error
Without this patch, I get the following error:
Error compiling Cython file:
------------------------------------------------------------
...
@cython.wraparound(False) # Deactivate negative indexing.
@cython.initializedcheck(False)
@cython.cdivision(True)
@cython.exceptval(check=False)
cdef void sort(signed int* y, ssize_t l) noexcept:
qsort(y, l, cython.sizeof(int), compare)
^
------------------------------------------------------------
/home/eschwartz/.local/lib/python3.6/site-packages/pyLZJD/lzjd_cython.pyx:434:36: Cannot assign type 'int (const_void *, const_void *) except? -1' to 'int (*)(const_void *, const_void *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'int (const_void *, const_void *) except? -1'.
What version of Cython were you using? I want to do some quick checks before accepting it.
3.0.3
Same for Cython 3.0.10
I apparently forgot about this. @bobo-le does edmcman's patch fix your issue?
Yes it does! Thank you.