Skip to content

Commit 62bc4b4

Browse files
committed
type usage fixes.
1 parent c1265cf commit 62bc4b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/fast_float/ascii_number.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
561561
auto const *const start_digits = p;
562562

563563
FASTFLOAT_IF_CONSTEXPR17((std::is_same<T, std::uint8_t>::value)) {
564-
const auto len = static_cast<limb_t>(pend - p);
564+
const auto len = static_cast<am_digits>(pend - p);
565565
if (len == 0) {
566566
if (has_leading_zeros) {
567567
value = 0;
@@ -605,7 +605,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
605605
const uint32_t magic =
606606
((digits + 0x46464646u) | (digits - 0x30303030u)) & 0x80808080u;
607607
const auto tz =
608-
static_cast<limb_t>(countr_zero_32(magic)); // 7, 15, 23, 31, or 32
608+
static_cast<am_digits>(countr_zero_32(magic)); // 7, 15, 23, 31, or 32
609609
limb_t nd = (tz == 32) ? 4 : (tz >> 3);
610610
nd = std::min(nd, len);
611611
if (nd == 0) {
@@ -621,7 +621,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
621621
}
622622
if (nd > 3) {
623623
const UC *q = p + nd;
624-
limb_t rem = len - nd;
624+
am_digits rem = len - nd;
625625
while (rem) {
626626
if (*q < UC('0') || *q > UC('9'))
627627
break;

include/fast_float/float_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ countr_zero_generic_32(uint32_t input_num) {
410410
if (input_num == 0) {
411411
return 32;
412412
}
413-
uint32_t last_bit = 0;
413+
uint_fast16_t last_bit = 0;
414414
if (!(input_num & 0x0000FFFF)) {
415415
input_num >>= 16;
416416
last_bit |= 16;

0 commit comments

Comments
 (0)