[libc-commits] [libc] 20d992d - [libc][math] Fix buildbot fails (#151186)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 29 10:51:44 PDT 2025
Author: Krishna Pandey
Date: 2025-07-29T13:51:40-04:00
New Revision: 20d992d36628ffb246ad7a67af46d83e358b8c43
URL: https://github.com/llvm/llvm-project/commit/20d992d36628ffb246ad7a67af46d83e358b8c43
DIFF: https://github.com/llvm/llvm-project/commit/20d992d36628ffb246ad7a67af46d83e358b8c43.diff
LOG: [libc][math] Fix buildbot fails (#151186)
Signed-off-by: Krishna Pandey <kpandey81930 at gmail.com>
Co-authored-by: OverMighty <its.overmighty at gmail.com>
Added:
Modified:
libc/src/__support/FPUtil/cast.h
Removed:
################################################################################
diff --git a/libc/src/__support/FPUtil/cast.h b/libc/src/__support/FPUtil/cast.h
index e6fad1be7d053..e999ece37871a 100644
--- a/libc/src/__support/FPUtil/cast.h
+++ b/libc/src/__support/FPUtil/cast.h
@@ -66,9 +66,9 @@ cast(InType x) {
cpp::max(OutFPBits::FRACTION_LEN, InFPBits::FRACTION_LEN);
DyadicFloat<cpp::bit_ceil(MAX_FRACTION_LEN)> xd(x);
return xd.template as<OutType, /*ShouldSignalExceptions=*/true>();
+ } else {
+ return static_cast<OutType>(x);
}
-
- return static_cast<OutType>(x);
}
} // namespace LIBC_NAMESPACE::fputil
More information about the libc-commits
mailing list