summaryrefslogtreecommitdiff
path: root/lib/Parse/Lexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parse/Lexer.cpp')
-rw-r--r--lib/Parse/Lexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/Lexer.cpp b/lib/Parse/Lexer.cpp
index 083b38cfa1..f7fa3d9896 100644
--- a/lib/Parse/Lexer.cpp
+++ b/lib/Parse/Lexer.cpp
@@ -658,13 +658,13 @@ static inline bool isNumberBody(unsigned char c) {
/// isBinaryNumberBody - Return true if this is the body character of a binary
/// number, which is [01].
static inline bool isBinaryNumberBody(unsigned char c) {
- return (c == '0' | c == '1') ? true : false;
+ return ((c == '0') || (c == '1'));
}
/// isOctalNumberBody - Return true if this is the body character of an octal
/// number, which is [0-7].
static inline bool isOctalNumberBody(unsigned char c) {
- return (c >= '0' & c <= '7') ? true : false;
+ return ((c >= '0') && (c <= '7'));
}
/// isDecimalNumberBody - Return true if this is the body character of a decimal