From: Shenghou Ma Date: Sat, 16 Aug 2014 04:04:15 +0000 (+1000) Subject: cmd/ld: fix operator precedence X-Git-Tag: go1.4beta1~814 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=41d75933d79bc094a5e522bf67e6e182cbd65450;p=gostls13.git cmd/ld: fix operator precedence LGTM=rsc R=gobot, dave CC=golang-codereviews, iant, rsc https://golang.org/cl/114420043 --- diff --git a/src/cmd/ld/data.c b/src/cmd/ld/data.c index c0dc3d05f2..1919123b49 100644 --- a/src/cmd/ld/data.c +++ b/src/cmd/ld/data.c @@ -145,7 +145,7 @@ relocsym(LSym *s) diag("%s: invalid relocation %d+%d not in [%d,%d)", s->name, off, siz, 0, s->np); continue; } - if(r->sym != S && (r->sym->type & SMASK == 0 || r->sym->type & SMASK == SXREF)) { + if(r->sym != S && ((r->sym->type & SMASK) == 0 || (r->sym->type & SMASK) == SXREF)) { diag("%s: not defined", r->sym->name); continue; }