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
Compiling file with enum initialised with hex numbers crashes with traceback:
Error compiling Cython file:
------------------------------------------------------------
...
cdef enum SDL_BlendMode:
SDL_BLENDMODE_NONE = 0x00000000,
^
------------------------------------------------------------
deleteme.pyx:2:4: Compiler crash in AnalyseDeclarationsTransform
File 'ModuleNode.py', line 203, in analyse_declarations: ModuleNode(deleteme.pyx:1:0,
full_module_name = 'pygame.deleteme')
File 'Nodes.py', line 393, in analyse_declarations: StatListNode(deleteme.pyx:1:5)
File 'Nodes.py', line 1728, in analyse_declarations: CEnumDefNode(deleteme.pyx:1:5,
name = 'SDL_BlendMode',
visibility = 'private')
File 'Nodes.py', line 1786, in analyse_enum_declarations: CEnumDefItemNode(deleteme.pyx:2:4,
name = 'SDL_BLENDMODE_NONE')
Compiler crash traceback from this point on:
File "/Users/ness-skmac3/dev/cython/Cython/Compiler/Nodes.py", line 1786, in analyse_enum_declarations
enum_value = int(self.value.value)
ValueError: invalid literal for int() with base 10: '0x00000000'
Describe the bug
Compiling file with enum initialised with hex numbers crashes with traceback:
Code to reproduce the behaviour:
Expected behaviour
Compilation success.
OS
any
Python version
any
Cython version
master
Additional context
Cython 0.29.X compiles example successfully
The text was updated successfully, but these errors were encountered: