You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But with Cython 3.0.5, it now throws an error when compiling:
cdef int_t* get_ptr_int(np.ndarray[int_t, ndim=1] a):
^
------------------------------------------------------------
readsparse/cpp_interface.pxi:257:23: Type is not specialized
Instead, one now has to change the type to void* and cast the result in the lines where it is called:
Describe the bug
This sort of code was working fine with earlier versions of cython (I think also with 3.0.0):
Example in usage:
https://github.com/david-cortes/readsparse/blob/7869e7a4e7097f8f82a8eb25da82c2db6e10738a/readsparse/cpp_interface.pxi#L220
But with Cython 3.0.5, it now throws an error when compiling:
Instead, one now has to change the type to
void*
and cast the result in the lines where it is called:Example in usage:
https://github.com/david-cortes/readsparse/blob/c7e04ed66ac1aa91e7eb72231e114f26e8506aa5/readsparse/cpp_interface.pxi#L1101
Code to reproduce the behaviour:
Expected behaviour
Should compile and work as if it were a C++ template
OS
Linux
Python version
3.11
Cython version
3.0.5
Additional context
No response
The text was updated successfully, but these errors were encountered: