Skip to content
Snippets Groups Projects
Commit 65db34e1 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix important operator precedence bug in SimplifyingSortingStringifyMapper.

parent 4eb1ce43
No related merge requests found
......@@ -169,7 +169,7 @@ class SimplifyingSortingStringifyMapper(StringifyMapper):
for ch in expr.children:
neg_prod = get_neg_product(ch)
if neg_prod is not None:
negatives.append(self.rec(neg_prod, PREC_SUM))
negatives.append(self.rec(neg_prod, PREC_PRODUCT))
else:
positives.append(self.rec(ch, PREC_SUM))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment