forked from OSchip/llvm-project
Silence a signed/unsigned mismatch warning; NFC
This commit is contained in:
parent
c9fa457933
commit
5922b92060
|
@ -56,7 +56,7 @@ public:
|
|||
/// Check if the Semantic follow the requirements of an older more limited
|
||||
/// version of this class
|
||||
bool isValidLegacySema() const {
|
||||
return LsbWeight <= 0 && Width >= -LsbWeight;
|
||||
return LsbWeight <= 0 && static_cast<int>(Width) >= -LsbWeight;
|
||||
}
|
||||
unsigned getWidth() const { return Width; }
|
||||
unsigned getScale() const { assert(isValidLegacySema()); return -LsbWeight; }
|
||||
|
|
Loading…
Reference in New Issue