Skip to content

Commit 2260580

Browse files
committed
fix compilation error in uint8_t parsing.
1 parent 3745f4b commit 2260580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fast_float/ascii_number.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
604604
const auto tz =
605605
static_cast<uint32_t>(countr_zero_32(magic)); // 7, 15, 23, 31, or 32
606606
uint32_t nd = (tz == 32) ? 4 : (tz >> 3);
607-
nd = std::min(nd, len);
607+
nd = std::min(static_cast<uint32_t>(nd), len);
608608
if (nd == 0) {
609609
if (has_leading_zeros) {
610610
value = 0;

0 commit comments

Comments
 (0)