Module labels.c has code to issue error message when global
directive appears after symbol definition, but the test condition
was incorrectly punctuated.
This commit is contained in:
Charles Crayne 2009-01-27 14:43:37 -08:00
parent e5fdc60c2b
commit dd1e6f5c37

View file

@ -362,7 +362,7 @@ void declare_as_global(char *label, char *special, efunc error)
case GLOBAL_SYMBOL:
break;
case LOCAL_SYMBOL:
if (!lptr->defn.is_global & EXTERN_BIT)
if (!(lptr->defn.is_global & EXTERN_BIT))
error(ERR_NONFATAL, "symbol `%s': GLOBAL directive must"
" appear before symbol definition", label);
break;