Codechange: add support for parsing octal numbers

This commit is contained in:
Rubidium
2025-05-03 07:47:15 +02:00
committed by rubidium42
parent c79abc6da6
commit 414f6a3067
3 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -829,7 +829,7 @@ private:
}
T value{};
assert(base == 10 || base == 16); // we only support these bases when skipping
assert(base == 8 || base == 10 || base == 16); // we only support these bases when skipping
auto result = std::from_chars(src.data(), src.data() + src.size(), value, base);
auto len = result.ptr - src.data();
if (result.ec == std::errc::result_out_of_range) {