]> Shamusworld >> Repos - rmac/blobdiff - symbol.c
Fix silly mask bugs, added check for use of undefined register equates.
[rmac] / symbol.c
index f10c55ad85b2a723425b1f6c479ee4baff32be20..f8d8424ff99de0886df08bd03cd459b85cf94d68 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -151,13 +151,14 @@ SYM * lookup(char * name, int type, int envno)
                if (symbol->stype == type                       // Type, envno and name must match
                        && symbol->senv  == envno
                        && *name == *symbol->sname              // Fast check for first character
-                       && !strcmp(name, symbol->sname))
+                       && !strcmp(name, symbol->sname))        // More expensive check
                        break;
 
                symbol = symbol->snext;
        }
 
-       return symbol;                                                  // Return NULL or matching symbol
+       // Return NULL or matching symbol
+       return symbol;
 }