Skip to content

Commit

Permalink
[libc][FPUtil] fixup missing explicit cast (#86736)
Browse files Browse the repository at this point in the history
The arm32 buildbot reports an error because UInt::operator bool() is explicit,
thus an explicit cast is necessary.

Link: #85940
  • Loading branch information
nickdesaulniers committed Mar 26, 2024
1 parent 1949f7d commit 80bba17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/src/__support/FPUtil/BasicOperations.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ LIBC_INLINE int canonicalize(T &cx, const T &x) {
// Values | | | (−1)**s × m × 2**−16382
bool bit63 = sx.get_implicit_bit();
UInt128 mantissa = sx.get_explicit_mantissa();
bool bit62 = ((mantissa & (1ULL << 62)) >> 62);
bool bit62 = static_cast<bool>((mantissa & (1ULL << 62)) >> 62);
int exponent = sx.get_biased_exponent();
if (exponent == 0x7FFF) {
if (!bit63 && !bit62) {
Expand Down

0 comments on commit 80bba17

Please sign in to comment.