Skip to content

Commit 20d992d

Browse files
[libc][math] Fix buildbot fails (#151186)
Signed-off-by: Krishna Pandey <[email protected]> Co-authored-by: OverMighty <[email protected]>
1 parent d2361e4 commit 20d992d

File tree

1 file changed

+2
-2
lines changed
  • libc/src/__support/FPUtil

1 file changed

+2
-2
lines changed

libc/src/__support/FPUtil/cast.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ cast(InType x) {
6666
cpp::max(OutFPBits::FRACTION_LEN, InFPBits::FRACTION_LEN);
6767
DyadicFloat<cpp::bit_ceil(MAX_FRACTION_LEN)> xd(x);
6868
return xd.template as<OutType, /*ShouldSignalExceptions=*/true>();
69+
} else {
70+
return static_cast<OutType>(x);
6971
}
70-
71-
return static_cast<OutType>(x);
7272
}
7373

7474
} // namespace LIBC_NAMESPACE::fputil

0 commit comments

Comments
 (0)