Skip to content

Commit ed7a9d1

Browse files
fix cast
1 parent 105e25a commit ed7a9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/FPBits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ struct FPRepImpl : public FPRepSem<fp_type, RetT> {
686686
}
687687

688688
LIBC_INLINE constexpr void set_biased_exponent(StorageType biased) {
689-
UP::set_biased_exponent(BiasedExponent((int32_t)biased));
689+
UP::set_biased_exponent(BiasedExponent(static_cast<uint32_t>(biased)));
690690
}
691691

692692
LIBC_INLINE constexpr int get_exponent() const {

0 commit comments

Comments
 (0)