fix for old C++ standard in library.

This commit is contained in:
IRainman 2026-01-21 02:40:58 +03:00
parent 306f7ea4f3
commit 7eab293436

View File

@ -439,7 +439,7 @@ fastfloat_strncasecmp(UC const *actual_mixedcase, UC const *expected_lowercase,
else FASTFLOAT_IF_CONSTEXPR17(sizeof(UC) == 4) {
mask = 0x0000002000000020;
}
constexpr uint_fast8_t sz{8 / (sizeof(UC))};
constexpr uint_fast8_t sz = 8 / (sizeof(UC));
for (uint_fast8_t i = 0; i < length; i += sz) {
val1 = val2 = 0;
sz = std::min(sz, static_cast<uint_fast8_t>(length - i));