robertwb / issues-import-test

0 stars 0 forks source link

DEF X = -1 raises TypeError in ExprNodes.py #34

Closed robertwb closed 8 years ago

robertwb commented 8 years ago

Reported by joost on 7 May 2008 19:11 UTC The fix for bug #220108 introduces a problem when defining a negative integer:

DEX X = -1

... File "/usr/lib/python2.5/site-packages/Cython-0.9.6.14-py2.5.egg/ Cython/Compiler/Parsing.py", line 1267, in p_DEF_statement value = expr.compile_time_value(denv) File "/usr/lib/python2.5/site-packages/Cython-0.9.6.14-py2.5.egg/ Cython/Compiler/ExprNodes.py", line 674, in compile_time_value return int(self.value, 0) TypeError: int() can't convert non-string with explicit base

Cython version 0.9.6.13 worked fine.

Migrated-From: http://trac.cython.org/ticket/8

robertwb commented 8 years ago

Comment by stefan_ml@behnel.de on 8 May 2008 07:11 UTC Fixed in changeset 492.

robertwb commented 8 years ago

Modified by robertwb on 19 Aug 2008 03:58 UTC