Forgot to change parse_number() in day 6 part 1.
This commit is contained in:
parent
932d76ba8a
commit
1953469f35
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user