2020 day 10 (C): fix for 32 bits architecture (ooops !)

This commit is contained in:
2022-12-06 17:18:22 +01:00
parent d8e05b0fca
commit d412824317
2 changed files with 6 additions and 9 deletions

View File

@@ -131,7 +131,7 @@ int main(ac, av)
struct list *list=NULL;
unsigned long long res, last;
list=add_val(list, 0);
list=add_val(list, 0ll);
while (fgets(line, sizeof line, stdin)) {
sscanf(line, "%llu", &res);
list=add_val(list, res);