From 64840bf4fd73969da69ee41529c837de56803188 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 20 Nov 2020 11:32:04 -0600 Subject: [PATCH] coinflip.c: Change flips to be unsigned (becuase I don't care) --- coinflip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coinflip.c b/coinflip.c index 376072a..0783b5a 100644 --- a/coinflip.c +++ b/coinflip.c @@ -10,7 +10,7 @@ int main() { char rawInput[19]; fgets(rawInput, 19, stdin); printf("rawInput = %s\n", rawInput); - long int flips = strtol(rawInput, NULL, 0); + unsigned long int flips = strtol(rawInput, NULL, 0); printf("Ok, flipping %li times!\n", flips); long int headsCount = 0;