Commit bede4102 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash in optimiser for unexpected node types

parent 118a0239
......@@ -2819,9 +2819,11 @@ class OptimizeBuiltinCalls(Visitor.NodeRefCleanupMixin,
if not intval.has_constant_result() or abs(intval.constant_result) > 2**30:
return node
args = list(args)
self._inject_int_default_argument(intval, args, len(args), PyrexTypes.c_long_type, intval.constant_result)
self._inject_int_default_argument(node, args, len(args), PyrexTypes.c_long_type, int(node.inplace))
inplace = node.inplace if isinstance(node, ExprNodes.NumBinopNode) else False
self._inject_int_default_argument(node, args, len(args), PyrexTypes.c_long_type, int(inplace))
utility_code = TempitaUtilityCode.load_cached(
"PyNumberBinopWithInt", "Optimize.c",
......
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