mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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
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 New Issue
Block a user