projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix kr2.c
[cparser]
/
lexer.c
diff --git
a/lexer.c
b/lexer.c
index
cba071b
..
faecfe3
100644
(file)
--- a/
lexer.c
+++ b/
lexer.c
@@
-343,7
+343,7
@@
static void parse_integer_suffix(bool is_oct_hex)
if(v >= TARGET_LONG_MIN && v <= TARGET_LONG_MAX) {
lexer_token.datatype = type_long;
return;
if(v >= TARGET_LONG_MIN && v <= TARGET_LONG_MAX) {
lexer_token.datatype = type_long;
return;
- } else if(is_oct_hex && v >= 0 &&
v <=
TARGET_ULONG_MAX) {
+ } else if(is_oct_hex && v >= 0 &&
(unsigned long long)v <= (unsigned long long)
TARGET_ULONG_MAX) {
lexer_token.datatype = type_unsigned_long;
return;
}
lexer_token.datatype = type_unsigned_long;
return;
}