From 02dee3370f1420b208c546194ac67322fe563a24 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 7 Jan 2022 17:18:30 +0100 Subject: refactor: add explicit int types --- src/position_stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/position_stack.c') 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); } -- cgit v1.2.3-18-g5258