diff options
author | Marvin Borner | 2020-12-18 13:46:31 +0100 |
---|---|---|
committer | Marvin Borner | 2020-12-18 13:46:31 +0100 |
commit | 38d65efd2f535e185d0083ff6ee6f2d5d4bbc17f (patch) | |
tree | e772c015a22c900a0cc3eab4f86dda48b6be8d03 /2020/18/solve.c | |
parent | 214a554dcf606e1918e4c0cca22fa31d993c089c (diff) |
Thanks, @Verzaukeks :)
Diffstat (limited to '2020/18/solve.c')
-rw-r--r-- | 2020/18/solve.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/2020/18/solve.c b/2020/18/solve.c index b223728..97d4ede 100644 --- a/2020/18/solve.c +++ b/2020/18/solve.c @@ -46,15 +46,15 @@ long evil(char *str) return res; } -int part_one(FILE *fp) +long part_one(FILE *fp) { - int res = 0; + long res = 0; char *line = NULL; size_t len; while (getline(&line, &len, fp) != -1) { - int a = evil(line); - printf("%d\n", a); + long a = evil(line); + printf("%lu\n", a); res += a; } |