summaryrefslogtreecommitdiff
path: root/lib/Parse/Lexer.cpp
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2015-08-20 16:59:30 +0100
committerBen Brewer <ben.brewer@codethink.co.uk>2015-08-21 10:03:42 +0100
commitd72c4e0475ec1c8d6ad352bcd478501df42d59f9 (patch)
treefe1fe201861759d0ec24decddb120152f81b0bb7 /lib/Parse/Lexer.cpp
parent2fd4986965e8f91ac26f6d572ea978e4f52e05b6 (diff)
downloadflang-d72c4e0475ec1c8d6ad352bcd478501df42d59f9.tar.gz
Fix misc. compiler warningsbenbrewer/warnings
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