Skip to content

Commit 4750e3d

Browse files
committed
compilation fix.
1 parent 207069e commit 4750e3d

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

include/fast_float/bigint.h

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -618,20 +618,16 @@ struct bigint : pow5_tables<> {
618618
exp -= small_step;
619619
}
620620
if (exp != 0) {
621-
FASTFLOAT_TRY(small_mul(
622-
vec,
623-
limb(
624621
#if defined(__clang__)
625-
// Work around clang bug https://godbolt.org/z/zedh7rrhc
626-
// This is similar to
627-
// https://github.com/llvm/llvm-project/issues/47746, except
628-
// the workaround described there don't work here
629-
(static_cast<void>(small_power_of_5[0]), small_power_of_5[exp])
622+
// Work around clang bug https://godbolt.org/z/zedh7rrhc
623+
// This is similar to
624+
// https://github.com/llvm/llvm-project/issues/47746, except
625+
// the workaround described there don't work here
626+
FASTFLOAT_TRY(small_mul(vec, limb((static_cast<void>(small_power_of_5[0]),
627+
small_power_of_5[exp]))));
630628
#else
631-
small_power_of_5[exp]
629+
FASTFLOAT_TRY(small_mul(vec, limb(small_power_of_5[exp])));
632630
#endif
633-
634-
)));
635631
}
636632

637633
return true;

0 commit comments

Comments
 (0)