diff options
Diffstat (limited to 'src/position_stack.c')
-rw-r--r-- | src/position_stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/position_stack.c b/src/position_stack.c index 597ed5a..0b4895a 100644 --- a/src/position_stack.c +++ b/src/position_stack.c @@ -41,7 +41,7 @@ void pos_stack_destroy(PositionStack *pos_stack) void pos_stack_push(PositionStack *pos_stack, Position pos) { // Avoid a overflow by checking if the stack is full - if (pos_stack->top == pos_stack->capacity - 1) + if (pos_stack->top == pos_stack->capacity - 1U) { stack_error(STACK_ERR_OVERFLOW); } |