diff --git a/src/stack.c b/src/stack.c index e9149b8..ce069ff 100644 --- a/src/stack.c +++ b/src/stack.c @@ -57,7 +57,7 @@ stack_pop(struct stack *st) if (!st->size) return NULL; - return st->item[st->size--]; + return st->item[--st->size]; } int