Fix Bugs item #2537867
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:
parent
e5fdc60c2b
commit
dd1e6f5c37
1 changed files with 1 additions and 1 deletions
2
labels.c
2
labels.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue