One less bug in sizeof ("ABC").
git-svn-id: svn://svn.cc65.org/cc65/trunk@1274 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
5c2e2e5a96
commit
3292569a89
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ static int primary (ExprDesc* lval)
|
|||
if (CurTok.Tok == TOK_SCONST) {
|
||||
lval->Flags = E_MCONST | E_TLIT;
|
||||
lval->ConstVal = CurTok.IVal;
|
||||
lval->Type = GetCharArrayType (strlen (GetLiteral (CurTok.IVal)));
|
||||
lval->Type = GetCharArrayType (GetLiteralPoolOffs () - CurTok.IVal);
|
||||
NextToken ();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue