fixed DEF constant integer parsing (bug 220108)
authorStefan Behnel <scoder@users.berlios.de>
Mon, 21 Apr 2008 05:59:02 +0000 (07:59 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 21 Apr 2008 05:59:02 +0000 (07:59 +0200)
Cython/Compiler/ExprNodes.py

index a6d0bd7b606d5c7718e34f185d969389b0da6129..77aa1bd9ffbeb47456bcea3cfff0b9e7807703ab 100644 (file)
@@ -669,7 +669,7 @@ class IntNode(ConstNode):
             return str(self.value)
 
     def compile_time_value(self, denv):
-        return int(self.value)
+        return int(self.value, 0)
 
 
 class FloatNode(ConstNode):