Changed TgtTranslateBuf

git-svn-id: svn://svn.cc65.org/cc65/trunk@649 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-03-23 17:56:28 +00:00
parent 1bc86c9c78
commit 45cf0c2dd9
3 changed files with 10 additions and 11 deletions

View File

@@ -306,7 +306,8 @@ static void DoASCIIZ (void)
Len = strlen (SVal);
/* Translate into target charset and emit */
EmitData ((unsigned char*) TgtTranslateBuf (SVal, Len), Len);
TgtTranslateBuf (SVal, Len);
EmitData ((unsigned char*) SVal, Len);
NextTok ();
if (Tok == TOK_COMMA) {
NextTok ();
@@ -342,7 +343,8 @@ static void DoByte (void)
if (Tok == TOK_STRCON) {
/* A string, translate into target charset and emit */
unsigned Len = strlen (SVal);
EmitData ((unsigned char*) TgtTranslateBuf (SVal, Len), Len);
TgtTranslateBuf (SVal, Len);
EmitData ((unsigned char*) SVal, Len);
NextTok ();
} else {
EmitByte (Expression ());