From 9083ea41dc3a85ddd440c2e270f8a5cef2873ef9 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Wed, 1 Apr 2020 19:26:41 -0400 Subject: [PATCH] fixed signedness --- project_euler/Problem 20/sol1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_euler/Problem 20/sol1.c b/project_euler/Problem 20/sol1.c index aa408322..32e09859 100644 --- a/project_euler/Problem 20/sol1.c +++ b/project_euler/Problem 20/sol1.c @@ -90,7 +90,7 @@ int main(int argc, char **argv) if (argc == 2) N = atoi(argv[1]); - for (int i = 1; i <= N; i++) + for (unsigned int i = 1; i <= N; i++) { int carry = 0; #ifdef DEBUG