Well... forgot to change a type of a returning num variable in day 5 and 6. xD
This commit is contained in:
parent
0760a2d627
commit
3fad087730
@ -70,7 +70,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline uint64_t parse_number(const char *end) {
|
inline uint64_t parse_number(const char *end) {
|
||||||
int64_t num = 0;
|
uint64_t num = 0;
|
||||||
|
|
||||||
for (size_t m = 1;; m *= 10) {
|
for (size_t m = 1;; m *= 10) {
|
||||||
if (*end>>4 != 0x3)
|
if (*end>>4 != 0x3)
|
||||||
|
@ -97,7 +97,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline uint64_t parse_number(const char *end) {
|
inline uint64_t parse_number(const char *end) {
|
||||||
int64_t num = 0;
|
uint64_t num = 0;
|
||||||
|
|
||||||
for (size_t m = 1;; m *= 10) {
|
for (size_t m = 1;; m *= 10) {
|
||||||
if (*end>>4 != 0x3)
|
if (*end>>4 != 0x3)
|
||||||
|
Loading…
Reference in New Issue
Block a user