Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2727 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
6ef711ed04
commit
271391d217
1 changed files with 1 additions and 4 deletions
|
@ -181,11 +181,8 @@ SymEntry* ParseScopedSymName (int AllocNew)
|
|||
/* Search for the symbol and return it. If no scope was specified,
|
||||
* search also in the upper levels.
|
||||
*/
|
||||
if (NoScope) {
|
||||
if (NoScope && !AllocNew) {
|
||||
Sym = SymFindAny (Scope, Ident);
|
||||
if (Sym == 0 && AllocNew) {
|
||||
Sym = SymFind (Scope, Ident, AllocNew);
|
||||
}
|
||||
} else {
|
||||
Sym = SymFind (Scope, Ident, AllocNew);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue