mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2720 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
7f3c28a438
commit
87857eced3
@ -404,12 +404,16 @@ static ExprNode* FuncSizeOf (void)
|
|||||||
/* Cheap local symbol */
|
/* Cheap local symbol */
|
||||||
Sym = SymFindLocal (SymLast, SVal, SYM_FIND_EXISTING);
|
Sym = SymFindLocal (SymLast, SVal, SYM_FIND_EXISTING);
|
||||||
if (Sym == 0) {
|
if (Sym == 0) {
|
||||||
Error ("Unknown symbol or scope: `%s%s'",
|
Error ("Unknown symbol or scope: `%s'", SVal);
|
||||||
SB_GetConstBuf (&ScopeName), Name);
|
|
||||||
} else {
|
} else {
|
||||||
SizeSym = GetSizeOfSymbol (Sym);
|
SizeSym = GetSizeOfSymbol (Sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remember and skip SVal, terminate ScopeName so it is empty */
|
||||||
|
strcpy (Name, SVal);
|
||||||
|
NextTok ();
|
||||||
|
SB_Terminate (&ScopeName);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/* Parse the scope and the name */
|
/* Parse the scope and the name */
|
||||||
|
Loading…
Reference in New Issue
Block a user