X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=lexer.c;h=2d1df82296a1afb8894bdb50ae380da5188a0f76;hb=fbfa4789da3ccbc2d7ecca67035f33956c0a9443;hp=779f4b326cdd99ad3f11b30910241072d940852a;hpb=ba0d46aeb8456932335728047230840ef65fdcf4;p=cparser diff --git a/lexer.c b/lexer.c index 779f4b3..2d1df82 100644 --- a/lexer.c +++ b/lexer.c @@ -1177,7 +1177,7 @@ end_of_char_constant:; lexer_token.type = T_CHARACTER_CONSTANT; lexer_token.v.string.begin = string; lexer_token.v.string.size = size; - lexer_token.datatype = type_int; + lexer_token.datatype = c_mode & _CXX && size == 1 ? type_char : type_int; } /**