mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +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 */
|
||||
Sym = SymFindLocal (SymLast, SVal, SYM_FIND_EXISTING);
|
||||
if (Sym == 0) {
|
||||
Error ("Unknown symbol or scope: `%s%s'",
|
||||
SB_GetConstBuf (&ScopeName), Name);
|
||||
Error ("Unknown symbol or scope: `%s'", SVal);
|
||||
} else {
|
||||
SizeSym = GetSizeOfSymbol (Sym);
|
||||
}
|
||||
|
||||
/* Remember and skip SVal, terminate ScopeName so it is empty */
|
||||
strcpy (Name, SVal);
|
||||
NextTok ();
|
||||
SB_Terminate (&ScopeName);
|
||||
|
||||
} else {
|
||||
|
||||
/* Parse the scope and the name */
|
||||
|
Loading…
Reference in New Issue
Block a user