Commit 459d2102 authored by Stefan Behnel's avatar Stefan Behnel

fix problematic constant folding condition in cascaded comparisons (even...

fix problematic constant folding condition in cascaded comparisons (even though it likely doesn't work anyway)
parent ffc292c6
......@@ -9651,7 +9651,7 @@ class CmpNode(object):
result = func(operand1_result, operand2_result)
if self.cascade:
self.cascade.calculate_cascaded_constant_result(operand2_result)
if self.cascade.constant_result:
if self.cascade.has_constant_result():
self.constant_result = result and self.cascade.constant_result
else:
self.constant_result = result
......
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