From 63206ab47a371b8bcdff1f3da49de515188cad14 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Wed, 8 Apr 2020 09:48:04 -0400 Subject: [PATCH] use long long int for printf compatibility --- project_euler/Problem 08/sol2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_euler/Problem 08/sol2.c b/project_euler/Problem 08/sol2.c index 67371886..9877b92d 100644 --- a/project_euler/Problem 08/sol2.c +++ b/project_euler/Problem 08/sol2.c @@ -10,7 +10,7 @@ int main(int argc, char *argv[]) char ch; uint8_t num, num_prev; uint8_t *buffer = NULL; - int64_t prod = 1, max_prod = 0; + long long int prod = 1, max_prod = 0; /* if second command-line argument is given, * use it as the number of digits to compute