summaryrefslogtreecommitdiffstats
path: root/src/interp.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-03-03 20:26:54 -0300
committerandmarti1424 <andmarti@gmail.com>2017-03-03 20:26:54 -0300
commitccb2a312bd147d7d433fd16875be34db0b5a39de (patch)
treec7923d025072db74b0f4bd612e0c011611b85073 /src/interp.c
parentf5f3d1f3a661833f302251182ca53d41a6e52438 (diff)
Exponential bind higher than unary -
Diffstat (limited to 'src/interp.c')
-rw-r--r--src/interp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interp.c b/src/interp.c
index 9953007..7f50526 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -2185,8 +2185,10 @@ void decompile(register struct enode *e, int priority) {
decompile(e->e.o.left, 30);
break;
case 'm':
+ if (priority != 0) line[linelim++] = '(';
line[linelim++] = '-';
decompile(e->e.o.left, 30);
+ if (priority != 0) line[linelim++] = ')';
break;
case '!':
line[linelim++] = '!';