Compare commits

..

No commits in common. "main" and "v8.2.2" have entirely different histories.
main ... v8.2.2

2 changed files with 77 additions and 79 deletions

View File

@ -24,7 +24,7 @@ jobs:
apt-get update -q -y apt-get update -q -y
apt-get install -y cmake make g++ apt-get install -y cmake make g++
run: | run: |
cmake -DCMAKE_BUILD_TYPE=Release -B build -DFASTFLOAT_TEST=ON cmake -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build -j=2 cmake --build build -j=2
ctest --output-on-failure --test-dir build ctest --output-on-failure --test-dir build

View File

@ -515,7 +515,6 @@ parse_int_string(UC const *p, UC const *pend, T &value,
UC const *const start_digits = p; UC const *const start_digits = p;
FASTFLOAT_IF_CONSTEXPR17((std::is_same<T, std::uint8_t>::value)) { FASTFLOAT_IF_CONSTEXPR17((std::is_same<T, std::uint8_t>::value)) {
if (base == 10) {
const size_t len = (size_t)(pend - p); const size_t len = (size_t)(pend - p);
if (len == 0) { if (len == 0) {
if (has_leading_zeros) { if (has_leading_zeros) {
@ -604,7 +603,6 @@ parse_int_string(UC const *p, UC const *pend, T &value,
answer.ptr = p + nd; answer.ptr = p + nd;
return answer; return answer;
} }
}
uint64_t i = 0; uint64_t i = 0;
if (base == 10) { if (base == 10) {