From 0760a2d62763bbb03edf56d3634f9b4a467a64c4 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 7 Dec 2023 01:02:32 +0400 Subject: [PATCH] In part 1of day 5 and 6 parse_number will return now uint64_t. --- day5/p1.c | 4 ++-- day6/p1.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/day5/p1.c b/day5/p1.c index a1112b6..0491fa1 100644 --- a/day5/p1.c +++ b/day5/p1.c @@ -5,7 +5,7 @@ #include -inline int64_t parse_number(const char *end); +inline uint64_t parse_number(const char *end); int main(int argc, char **argv) { @@ -69,7 +69,7 @@ int main(int argc, char **argv) { return 0; } -inline int64_t parse_number(const char *end) { +inline uint64_t parse_number(const char *end) { int64_t num = 0; for (size_t m = 1;; m *= 10) { diff --git a/day6/p1.c b/day6/p1.c index 2559947..9d077b6 100644 --- a/day6/p1.c +++ b/day6/p1.c @@ -7,7 +7,7 @@ #define ISDIGIT(c) (c >= 0x30 && c <= 0x39) -inline int64_t parse_number(const char *end); +inline uint64_t parse_number(const char *end); int main(int argc, char **argv) { @@ -96,7 +96,7 @@ int main(int argc, char **argv) { return 0; } -inline int64_t parse_number(const char *end) { +inline uint64_t parse_number(const char *end) { int64_t num = 0; for (size_t m = 1;; m *= 10) {