In part 1of day 5 and 6 parse_number will return now uint64_t.
This commit is contained in:
parent
1953469f35
commit
0760a2d627
@ -5,7 +5,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user