Skip to content

Commit 52cd6d9

Browse files
committed
fix for old standard.
1 parent 7eab293 commit 52cd6d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/fast_float/float_common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,8 @@ fastfloat_strncasecmp(UC const *actual_mixedcase, UC const *expected_lowercase,
439439
else FASTFLOAT_IF_CONSTEXPR17(sizeof(UC) == 4) {
440440
mask = 0x0000002000000020;
441441
}
442-
constexpr uint_fast8_t sz = 8 / (sizeof(UC));
442+
uint_fast8_t sz = 8 / (sizeof(UC));
443443
for (uint_fast8_t i = 0; i < length; i += sz) {
444-
val1 = val2 = 0;
445444
sz = std::min(sz, static_cast<uint_fast8_t>(length - i));
446445
std::memcpy(&val1, actual_mixedcase + i, sz * sizeof(UC));
447446
std::memcpy(&val2, expected_lowercase + i, sz * sizeof(UC));

0 commit comments

Comments
 (0)