Skip to content

Commit 80bba17

Browse files
[libc][FPUtil] fixup missing explicit cast (#86736)
The arm32 buildbot reports an error because UInt::operator bool() is explicit, thus an explicit cast is necessary. Link: #85940
1 parent 1949f7d commit 80bba17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/BasicOperations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ LIBC_INLINE int canonicalize(T &cx, const T &x) {
199199
// Values | | | (−1)**s × m × 2**−16382
200200
bool bit63 = sx.get_implicit_bit();
201201
UInt128 mantissa = sx.get_explicit_mantissa();
202-
bool bit62 = ((mantissa & (1ULL << 62)) >> 62);
202+
bool bit62 = static_cast<bool>((mantissa & (1ULL << 62)) >> 62);
203203
int exponent = sx.get_biased_exponent();
204204
if (exponent == 0x7FFF) {
205205
if (!bit63 && !bit62) {

0 commit comments

Comments
 (0)