We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2361e4 commit 20d992dCopy full SHA for 20d992d
libc/src/__support/FPUtil/cast.h
@@ -66,9 +66,9 @@ cast(InType x) {
66
cpp::max(OutFPBits::FRACTION_LEN, InFPBits::FRACTION_LEN);
67
DyadicFloat<cpp::bit_ceil(MAX_FRACTION_LEN)> xd(x);
68
return xd.template as<OutType, /*ShouldSignalExceptions=*/true>();
69
+ } else {
70
+ return static_cast<OutType>(x);
71
}
-
- return static_cast<OutType>(x);
72
73
74
} // namespace LIBC_NAMESPACE::fputil
0 commit comments