fixes #2666, double charmap of char literals
This commit is contained in:
@@ -1550,7 +1550,6 @@ CharAgain:
|
|||||||
** string later.
|
** string later.
|
||||||
*/
|
*/
|
||||||
ReadStringConst ('\'');
|
ReadStringConst ('\'');
|
||||||
TgtTranslateStrBuf(&CurTok.SVal);
|
|
||||||
if (SB_GetLen (&CurTok.SVal) == 1) {
|
if (SB_GetLen (&CurTok.SVal) == 1) {
|
||||||
CurTok.IVal = SB_AtUnchecked (&CurTok.SVal, 0);
|
CurTok.IVal = SB_AtUnchecked (&CurTok.SVal, 0);
|
||||||
CurTok.Tok = TOK_CHARCON;
|
CurTok.Tok = TOK_CHARCON;
|
||||||
@@ -1562,7 +1561,6 @@ CharAgain:
|
|||||||
** Hack: Pass 0 to ReadStringConst for special handling.
|
** Hack: Pass 0 to ReadStringConst for special handling.
|
||||||
*/
|
*/
|
||||||
ReadStringConst(0);
|
ReadStringConst(0);
|
||||||
TgtTranslateStrBuf(&CurTok.SVal);
|
|
||||||
if (SB_GetLen(&CurTok.SVal) != 1) {
|
if (SB_GetLen(&CurTok.SVal) != 1) {
|
||||||
Error ("Illegal character constant");
|
Error ("Illegal character constant");
|
||||||
goto CharAgain;
|
goto CharAgain;
|
||||||
|
|||||||
Reference in New Issue
Block a user