diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-10-30 09:11:55 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-10-30 09:11:55 +0200 |
commit | e4c530240650535d1cb46569dfb013193471af05 (patch) | |
tree | 2a527a6c682b23889d30a5360170e0d3df715773 /lib | |
parent | bea3d90771e98c44a6c20578aabd9ebc81edb6ed (diff) | |
download | tracifyjs-e4c530240650535d1cb46569dfb013193471af05.tar.gz tracifyjs-e4c530240650535d1cb46569dfb013193471af05.zip |
Fix output for `x = 2 * (a % b / b * c)`
(issue #337)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/output.js b/lib/output.js index 0114783a..abf57b54 100644 --- a/lib/output.js +++ b/lib/output.js @@ -481,11 +481,7 @@ function OutputStream(options) { var so = this.operator, sp = PRECEDENCE[so]; if (pp > sp || (pp == sp - && this === p.right - && !(so == po && - (so == "*" || - so == "&&" || - so == "||")))) { + && this === p.right)) { return true; } } |