Commit d7acfb89 authored by Stefan Behnel's avatar Stefan Behnel

avoid accidental duplication of cached Python integer constants when using...

avoid accidental duplication of cached Python integer constants when using numbers in different notations
parent 9b0e8c60
......@@ -1101,7 +1101,7 @@ class IntNode(ConstNode):
def generate_evaluation_code(self, code):
if self.type.is_pyobject:
# pre-allocate a Python version of the number
plain_integer_string = self.value_as_c_integer_string(plain_digits=True)
plain_integer_string = str(Utils.str_to_number(self.value))
self.result_code = code.get_py_int(plain_integer_string, self.longness)
else:
self.result_code = self.get_constant_c_result_code()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment