Silence a signed/unsigned mismatch warning; NFC

This commit is contained in:
Aaron Ballman 2022-10-06 13:30:15 -04:00
parent c9fa457933
commit 5922b92060
1 changed files with 1 additions and 1 deletions

View File

@ -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; }