compilation fix.

This commit is contained in:
HedgehogInTheCPP 2026-08-22 22:53:55 +03:00
parent 207069edcd
commit 4750e3d5e3

View File

@ -618,20 +618,16 @@ struct bigint : pow5_tables<> {
exp -= small_step;
}
if (exp != 0) {
FASTFLOAT_TRY(small_mul(
vec,
limb(
#if defined(__clang__)
// Work around clang bug https://godbolt.org/z/zedh7rrhc
// This is similar to
// https://github.com/llvm/llvm-project/issues/47746, except
// the workaround described there don't work here
(static_cast<void>(small_power_of_5[0]), small_power_of_5[exp])
// Work around clang bug https://godbolt.org/z/zedh7rrhc
// This is similar to
// https://github.com/llvm/llvm-project/issues/47746, except
// the workaround described there don't work here
FASTFLOAT_TRY(small_mul(vec, limb((static_cast<void>(small_power_of_5[0]),
small_power_of_5[exp]))));
#else
small_power_of_5[exp]
FASTFLOAT_TRY(small_mul(vec, limb(small_power_of_5[exp])));
#endif
)));
}
return true;