diff options
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ec1386a..6c0d29f 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -2036,15 +2036,13 @@ yylex () /* mbtowc sometimes needs an extra char before accepting */ if (char_len <= i) UNGETC (c); - if (wide_flag) + if (! wide_flag) { - *(wchar_t *)p = wc; - p += sizeof (wc); + p += (i + 1); + c = GETC (); + continue; } - else - p += (i + 1); - c = GETC (); - continue; + c = wc; } #endif /* MULTIBYTE_CHARS */ } |