Fix Bugs item #2537867
authorCharles Crayne <chuck@thor.crayne.org>
Tue, 27 Jan 2009 22:43:37 +0000 (14:43 -0800)
committerCharles Crayne <chuck@thor.crayne.org>
Tue, 27 Jan 2009 22:43:37 +0000 (14:43 -0800)
Module labels.c has code to issue error message when global
directive appears after symbol definition, but the test condition
was incorrectly punctuated.

labels.c

index b7a1b44..df32315 100644 (file)
--- 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;