Need strtoull for 64-bit ulongs.

This commit is contained in:
Henrik Rydgård committed 2021-07-18 10:02:08 +02:00
1 parent c664480720
commit 6f73dd4b74
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ bool TryParse(const std::string &str, uint64_t *const output) {
// Reset errno to a value other than ERANGE
errno = 0;
uint64_t value = strtoul(str.c_str(), &endptr, 0);
uint64_t value = strtoull(str.c_str(), &endptr, 0);
if (!endptr || *endptr)
return false;