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]) {