summaryrefslogtreecommitdiff
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
parente5fdc60c2bc62ed7ba3a0339885c9c26939653d9 (diff)
downloadnasm-dd1e6f5c37cbd0b03c69726aebc84bf8861a686e.tar.gz
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.
-rw-r--r--labels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/labels.c b/labels.c
index b7a1b445..df32315a 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;