[cfe-commits] r38809 - /cfe/cfe/trunk/Lex/Preprocessor.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:50 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:49 2007
New Revision: 38809
URL: http://llvm.org/viewvc/llvm-project?rev=38809&view=rev
Log:
Fix precedence problem
Modified:
cfe/cfe/trunk/Lex/Preprocessor.cpp
Modified: cfe/cfe/trunk/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Preprocessor.cpp?rev=38809&r1=38808&r2=38809&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/Preprocessor.cpp (original)
+++ cfe/cfe/trunk/Lex/Preprocessor.cpp Wed Jul 11 11:24:49 2007
@@ -120,9 +120,9 @@
// Add keywords and tokens for the current language.
#define KEYWORD(NAME, FLAGS) \
AddKeyword(#NAME, tok::kw_ ## NAME, \
- (FLAGS >> C90Shift) & Mask, \
- (FLAGS >> C99Shift) & Mask, \
- (FLAGS >> CPPShift) & Mask);
+ ((FLAGS) >> C90Shift) & Mask, \
+ ((FLAGS) >> C99Shift) & Mask, \
+ ((FLAGS) >> CPPShift) & Mask);
#define ALIAS(NAME, TOK) \
AddKeyword(NAME, tok::kw_ ## TOK, 0, 0, 0);
#include "clang/Basic/TokenKinds.def"
More information about the cfe-commits
mailing list