Skip to content

Commit 00ba384

Browse files
committed
Fix type of pointer to _umul128
1 parent 3d751ad commit 00ba384

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/boost/json/detail/charconv/detail/fast_float/float_common.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ value128 full_multiplication(uint64_t a, uint64_t b) {
208208
answer.high = __umulh(a, b);
209209
answer.low = a * b;
210210
#elif defined(BOOST_JSON_FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
211-
answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
211+
unsigned long long high;
212+
answer.low = _umul128(a, b, &high); // _umul128 not available on ARM64
213+
answer.high = static_cast<uint64_t>(high);
212214
#elif defined(BOOST_JSON_FASTFLOAT_64BIT)
213215
__uint128_t r = ((__uint128_t)a) * b;
214216
answer.low = uint64_t(r);

0 commit comments

Comments
 (0)