From b8064e8309adc838e5d5596b84c89c3c3665fb25 Mon Sep 17 00:00:00 2001 From: Parker Macdonald Date: Sat, 7 Dec 2024 17:18:13 -0700 Subject: [PATCH] fix compiling with -Werror --- day 1/1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day 1/1.c b/day 1/1.c index 7808f4d..89facf5 100644 --- a/day 1/1.c +++ b/day 1/1.c @@ -39,8 +39,8 @@ int main(void) { } for (size_t i = 0; i < lineCount - 1; i++) { - int leftMin = i; - int rightMin = i; + size_t leftMin = i; + size_t rightMin = i; for (size_t j = i + 1; j < lineCount; j++) { if (left[j] < left[leftMin]) {