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
I have a C array with defined index ranges in an enum.
In C++ this will compile and run, in Cython this generates the error "Invalid index type 'Test'".
A work-around is to cast the enums to int, but it's ugly and I think unnecessary since enums are already defined as ints?
(Trying to assign 0.4 to Test_Something results in error: enumindex.pyx:3:19: Cannot assign type 'double' to 'int')
Describe the bug
Not sure if this is a bug or enhancement.
I have a C array with defined index ranges in an enum.
In C++ this will compile and run, in Cython this generates the error "Invalid index type 'Test'".
A work-around is to cast the enums to int, but it's ugly and I think unnecessary since enums are already defined as ints?
(Trying to assign 0.4 to Test_Something results in error: enumindex.pyx:3:19: Cannot assign type 'double' to 'int')
Code to reproduce the behaviour:
Expected behaviour
No response
OS
Linux (Ubuntu 22.04.3 LTS WSL)
Python version
3.10.12
Cython version
3.0.10
Additional context
No response
The text was updated successfully, but these errors were encountered: