[cfe-commits] r58842 - /cfe/trunk/include/clang/Basic/IdentifierTable.h
Argiris Kirtzidis
akyrtzi at gmail.com
Fri Nov 7 04:15:17 PST 2008
Author: akirtzidis
Date: Fri Nov 7 06:15:16 2008
New Revision: 58842
URL: http://llvm.org/viewvc/llvm-project?rev=58842&view=rev
Log:
Shut off an unsigned/signed comparison warning for GCC.
Modified:
cfe/trunk/include/clang/Basic/IdentifierTable.h
Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=58842&r1=58841&r2=58842&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/IdentifierTable.h (original)
+++ cfe/trunk/include/clang/Basic/IdentifierTable.h Fri Nov 7 06:15:16 2008
@@ -118,7 +118,7 @@
}
void setBuiltinID(unsigned ID) {
ObjCOrBuiltinID = ID + tok::NUM_OBJC_KEYWORDS;
- assert(ObjCOrBuiltinID - tok::NUM_OBJC_KEYWORDS == ID
+ assert(ObjCOrBuiltinID - unsigned(tok::NUM_OBJC_KEYWORDS) == ID
&& "ID too large for field!");
}
More information about the cfe-commits
mailing list