summaryrefslogtreecommitdiff
path: root/labels.c
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2009-01-27 14:43:37 -0800
committerCharles Crayne <chuck@thor.crayne.org>2009-01-27 14:43:37 -0800
commitdd1e6f5c37cbd0b03c69726aebc84bf8861a686e (patch)
tree8e86e40121125178ded54b89aec3f7d17f749ad6 /labels.c
parente5fdc60c2bc62ed7ba3a0339885c9c26939653d9 (diff)
downloadnasm-dd1e6f5c37cbd0b03c69726aebc84bf8861a686e.tar.gz
nasm-dd1e6f5c37cbd0b03c69726aebc84bf8861a686e.tar.bz2
nasm-dd1e6f5c37cbd0b03c69726aebc84bf8861a686e.zip
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.
Diffstat (limited to 'labels.c')
-rw-r--r--labels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/labels.c b/labels.c
index b7a1b44..df32315 100644
--- a/labels.c
+++ b/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;