Skip to content

Commit

Permalink
use long long int for printf compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kvedala committed Apr 8, 2020
1 parent de027fe commit 63206ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_euler/Problem 08/sol2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63206ab

Please sign in to comment.