Skip to content

Commit

Permalink
Fix destroyStack() function in cnex
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlarryf authored and ghewgill committed Aug 9, 2023
1 parent 8540d5e commit 4e47db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec/cnex/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TStack *createStack(int capacity)

void destroyStack(TStack *stack)
{
while (stack->top > 0) {
while (stack->top != -1) {
pop(stack);
}

Expand Down

0 comments on commit 4e47db0

Please sign in to comment.