aboutsummaryrefslogtreecommitdiff
path: root/src/position_stack.c
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-01-07 17:18:30 +0100
committerHampusM <hampus@hampusmat.com>2022-01-07 17:18:30 +0100
commit02dee3370f1420b208c546194ac67322fe563a24 (patch)
tree183df0b5267c233d658f0fd3cb5bfd87eb11b402 /src/position_stack.c
parent813c98b028c9ba484fb5b21a60067ae35cc925ff (diff)
refactor: add explicit int types
Diffstat (limited to 'src/position_stack.c')
-rw-r--r--src/position_stack.c2
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);
}