mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-09 11:16:45 +08:00
cleanup.
This commit is contained in:
parent
060c33175d
commit
155be7d3d3
@ -378,7 +378,7 @@ fastfloat_strncasecmp5(UC const *actual_mixedcase,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
uint64_t val1{0}, val2{0};
|
||||
uint64_t val1{0}, val2{0};
|
||||
FASTFLOAT_IF_CONSTEXPR17(sizeof(UC) == 1) {
|
||||
constexpr uint64_t mask = 0x2020202020202020;
|
||||
std::memcpy(&val1, actual_mixedcase, 5 * sizeof(UC));
|
||||
@ -442,7 +442,7 @@ fastfloat_strncasecmp(UC const *actual_mixedcase, UC const *expected_lowercase,
|
||||
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, uint_fast8_t(length - i));
|
||||
sz = std::min(sz, static_cast<uint_fast8_t>(length - i));
|
||||
std::memcpy(&val1, actual_mixedcase + i, sz * sizeof(UC));
|
||||
std::memcpy(&val2, expected_lowercase + i, sz * sizeof(UC));
|
||||
val1 |= mask;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user