summaryrefslogtreecommitdiff
path: root/lib/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parser.c')
-rw-r--r--lib/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parser.c b/lib/parser.c
index 6a2ab34..529516b 100644
--- a/lib/parser.c
+++ b/lib/parser.c
@@ -232,6 +232,7 @@ void parse_line(char *line)
exception(1, _("Parse error: too much left parenthesis"));
act_pile(get_func(op));
}
+ got_unary = 128;
move_to_resultat_pile();
break;
case ')':
@@ -273,7 +274,7 @@ void parse_line(char *line)
}
popcontext();
if (global_error) {
- got_unary = 0;
+ got_unary = 128;
while (pileop_pos) {
pop_op();
}