mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-11 12:49:54 +08:00
fix compilation error in uint8_t parsing.
This commit is contained in:
parent
3745f4b009
commit
22605807b8
@ -604,7 +604,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
|
|||||||
const auto tz =
|
const auto tz =
|
||||||
static_cast<uint32_t>(countr_zero_32(magic)); // 7, 15, 23, 31, or 32
|
static_cast<uint32_t>(countr_zero_32(magic)); // 7, 15, 23, 31, or 32
|
||||||
uint32_t nd = (tz == 32) ? 4 : (tz >> 3);
|
uint32_t nd = (tz == 32) ? 4 : (tz >> 3);
|
||||||
nd = std::min(nd, len);
|
nd = std::min(static_cast<uint32_t>(nd), len);
|
||||||
if (nd == 0) {
|
if (nd == 0) {
|
||||||
if (has_leading_zeros) {
|
if (has_leading_zeros) {
|
||||||
value = 0;
|
value = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user