diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-13 23:38:52 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-13 23:38:52 +0800 |
commit | 36ce5ee7cb8e85cf6354620086583e3db8377589 (patch) | |
tree | c96897462acfe1783a26b887c26f67468d13f48b /src/2021/day4/aoc.cpp | |
parent | c3ff6962d336f4175cbbcc368b1089bf176a96d0 (diff) | |
download | advent-of-code-36ce5ee7cb8e85cf6354620086583e3db8377589.tar.gz advent-of-code-36ce5ee7cb8e85cf6354620086583e3db8377589.zip |
2021 day5 part1
Diffstat (limited to 'src/2021/day4/aoc.cpp')
-rw-r--r-- | src/2021/day4/aoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2021/day4/aoc.cpp b/src/2021/day4/aoc.cpp index 6212dcd..e8dbff8 100644 --- a/src/2021/day4/aoc.cpp +++ b/src/2021/day4/aoc.cpp @@ -12,7 +12,7 @@ struct bnum { bool operator<(const bnum& b) const noexcept { return v < b.v; } }; -void get_number(const char** pp, int* d) { +static void get_number(const char** pp, int* d) { const char* p = *pp; while (*p >= '0' && *p <= '9') { *d = *d * 10 + *p - '0'; |