Skip to content

Commit 5922b92

Browse files
committed
Silence a signed/unsigned mismatch warning; NFC
1 parent c9fa457 commit 5922b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/APFixedPoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class FixedPointSemantics {
5656
/// Check if the Semantic follow the requirements of an older more limited
5757
/// version of this class
5858
bool isValidLegacySema() const {
59-
return LsbWeight <= 0 && Width >= -LsbWeight;
59+
return LsbWeight <= 0 && static_cast<int>(Width) >= -LsbWeight;
6060
}
6161
unsigned getWidth() const { return Width; }
6262
unsigned getScale() const { assert(isValidLegacySema()); return -LsbWeight; }

0 commit comments

Comments
 (0)