Skip to content

Commit 0175cae

Browse files
committed
simplify assert
Created using spr 1.3.6-beta.1
1 parent c0bc2d2 commit 0175cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/builtins/Unit/fp_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static inline int compareResultF80(xf_float result, uint16_t expectedHi,
255255
uint64_t expectedLo) {
256256
uqwords rep = F80ToRep80(result);
257257
// F80 high occupies the lower 16 bits of high.
258-
assert((rep.high.all & ((1UL << (80 - 64)) - 1)) == rep.high.all);
258+
assert((uint64_t)(uint16_t)rep.high.all == rep.high.all);
259259
return !(rep.high.all == expectedHi && rep.low.all == expectedLo);
260260
}
261261

0 commit comments

Comments
 (0)