summaryrefslogtreecommitdiffabout
path: root/src/parser.c
Side-by-side diff
Diffstat (limited to 'src/parser.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index d2832a1..e5114dc 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -236,7 +236,7 @@ tokdel(int beg, int end)
if (end >= beg) {
if (end < tos)
memmove(token_stack + beg, token_stack + end + 1,
- (end - beg + 1) * sizeof(token_stack[0]));
+ (tos - end - 1) * sizeof(token_stack[0]));
tos -= (end - beg + 1);
}
}

Return to:

Send suggestions and report system problems to the System administrator.