Commit cde7b1b0 by Dave Brolley Committed by Dave Brolley

lex.c (real_yylex): Fix unaligned access of wchar_t.

1998-10-16  Dave Brolley  <brolley@cygnus.com>
        * lex.c (real_yylex): Fix unaligned access of wchar_t.

From-SVN: r23134
parent 1f3d9c63
1998-10-16 Dave Brolley <brolley@cygnus.com>
* lex.c (real_yylex): Fix unaligned access of wchar_t.
1998-10-16 Mark Mitchell <mark@markmitchell.com>
* class.c (add_method): Fix documentation to reflect previous
......
......@@ -4214,15 +4214,13 @@ real_yylex ()
/* mbtowc sometimes needs an extra char before accepting */
if (char_len <= i)
put_back (c);
if (wide_flag)
if (! wide_flag)
{
*(wchar_t *)p = wc;
p += sizeof (wc);
p += (i + 1);
c = getch ();
continue;
}
else
p += (i + 1);
c = getch ();
continue;
c = wc;
}
#endif /* MULTIBYTE_CHARS */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment