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 74ec474 commit 9dc097fCopy full SHA for 9dc097f
libc/src/__support/FPUtil/generic/sqrt.h
@@ -153,7 +153,7 @@ sqrt(InType x) {
153
y |= 1 << 1;
154
}
155
// Sticky bit.
156
- y |= r != 0;
+ y |= static_cast<unsigned int>(r != 0);
157
158
DyadicFloat yd(Sign::POS, (x_exp >> 1) - 2 - InFPBits::FRACTION_LEN, y);
159
return yd.template as<OutType, /*ShouldSignalExceptions=*/true>();
0 commit comments