From: Charles Crayne Date: Tue, 27 Jan 2009 22:43:37 +0000 (-0800) Subject: Fix Bugs item #2537867 X-Git-Tag: nasm-2.11.05~1095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd1e6f5c37cbd0b03c69726aebc84bf8861a686e;p=platform%2Fupstream%2Fnasm.git 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. --- 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;