Index: src/PNaClTranslator.cpp |
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
index 5381315b2c977a0970aff7ead2df6eaf8619b3d1..d7dc0c3ec8f1260b2e758f9f78824513b51a8381 100644 |
--- a/src/PNaClTranslator.cpp |
+++ b/src/PNaClTranslator.cpp |
@@ -879,7 +879,7 @@ private: |
// an absolute value index. |
uint32_t convertRelativeToAbsIndex(int32_t Id) { |
int32_t AbsNextId = CachedNumGlobalValueIDs + LocalOperands.size(); |
- if (Id > 0 && AbsNextId < static_cast<uint32_t>(Id)) { |
+ if (Id > 0 && AbsNextId < Id) { |
std::string Buffer; |
raw_string_ostream StrBuf(Buffer); |
StrBuf << "Invalid relative value id: " << Id |