aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld/data.c
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2014-08-06 00:25:05 -0400
committerShenghou Ma <minux@golang.org>2014-08-06 00:25:05 -0400
commit2c181f0355f0e3a4ed2bf8a33e699c80d5e1cc34 (patch)
tree9bb3c3d991e823bae9d9a507c9882ab85f24b02a /src/cmd/ld/data.c
parentde14137b4f179d97ac303d20330ba0ad622eab28 (diff)
downloadgo-2c181f0355f0e3a4ed2bf8a33e699c80d5e1cc34.tar.xz
cmd/ld: fix operator precedence
LGTM=rsc R=rsc, iant CC=golang-codereviews https://golang.org/cl/114420043
Diffstat (limited to 'src/cmd/ld/data.c')
-rw-r--r--src/cmd/ld/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ld/data.c b/src/cmd/ld/data.c
index 96eadd479a..1511d0b513 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;
}