Browse Source

Fix a bug reported by a FreeBSD user

This bug was hard to find the cause of (because the reproducer was a
massive dc script), but the problem was simple: the `P` was supposed to
pop the top of the stack, and it did not.

This commit fixes the problem.
master
Gavin Howard 1 month ago
parent
commit
34ca7b50d1
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 2
      src/program.c

2
src/program.c

@ -1443,6 +1443,8 @@ static void bc_program_printStream(BcProgram *p) {
size_t idx = (r->t == BC_RESULT_STR) ? r->d.loc.loc : n->scale;
bc_program_printChars(*((char**) bc_vec_item(p->strs, idx)));
}
bc_vec_pop(&p->results);
}
static void bc_program_nquit(BcProgram *p, uchar inst) {

Loading…
Cancel
Save