1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@2727 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-12-12 12:57:49 +00:00
parent 6ef711ed04
commit 271391d217

View File

@ -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);
}