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 c9fa457 commit 5922b92Copy full SHA for 5922b92
llvm/include/llvm/ADT/APFixedPoint.h
@@ -56,7 +56,7 @@ class FixedPointSemantics {
56
/// Check if the Semantic follow the requirements of an older more limited
57
/// version of this class
58
bool isValidLegacySema() const {
59
- return LsbWeight <= 0 && Width >= -LsbWeight;
+ return LsbWeight <= 0 && static_cast<int>(Width) >= -LsbWeight;
60
}
61
unsigned getWidth() const { return Width; }
62
unsigned getScale() const { assert(isValidLegacySema()); return -LsbWeight; }
0 commit comments