From 6f73dd4b74d695d9f2775ad2de8a0e65deefed9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 18 Jul 2021 10:02:08 +0200 Subject: [PATCH] Need strtoull for 64-bit ulongs. --- Common/Data/Text/Parsers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Data/Text/Parsers.cpp b/Common/Data/Text/Parsers.cpp index 5342b6fbcd..427fb74316 100644 --- a/Common/Data/Text/Parsers.cpp +++ b/Common/Data/Text/Parsers.cpp @@ -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;