Skip to content

Commit 72d3f6c

Browse files
committed
* type usage fix in merged code
1 parent cd4aafd commit 72d3f6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/fast_float/ascii_number.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ parse_number_string(UC const *p, UC const *pend,
403403
}
404404
}
405405
UC const *const end_of_integer_part = p;
406-
int64_t digit_count = int64_t(end_of_integer_part - start_digits);
406+
auto digit_count = static_cast<am_digits>(end_of_integer_part - start_digits);
407407
if (store_spans) {
408-
answer.integer = span<UC const>(start_digits, size_t(digit_count));
408+
answer.integer = span<UC const>(start_digits, digit_count);
409409
}
410410
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
411411
FASTFLOAT_IF_CONSTEXPR17(basic_json_fmt) {

0 commit comments

Comments
 (0)