Forgot to change parse_number() in day 6 part 1.

This commit is contained in:
Alexander Andreev 2023-12-07 00:46:32 +04:00
parent 932d76ba8a
commit 1953469f35
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -7,7 +7,7 @@
#define ISDIGIT(c) (c >= 0x30 && c <= 0x39) #define ISDIGIT(c) (c >= 0x30 && c <= 0x39)
int64_t parse_number(char *end); inline int64_t parse_number(const char *end);
int main(int argc, char **argv) { int main(int argc, char **argv) {
@ -96,7 +96,7 @@ int main(int argc, char **argv) {
return 0; return 0;
} }
int64_t parse_number(char *end) { inline int64_t parse_number(const char *end) {
int64_t num = 0; int64_t num = 0;
for (size_t m = 1;; m *= 10) { for (size_t m = 1;; m *= 10) {