diff options
| author | Shenghou Ma <minux@golang.org> | 2014-08-16 14:04:15 +1000 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2014-08-16 14:04:15 +1000 |
| commit | 41d75933d79bc094a5e522bf67e6e182cbd65450 (patch) | |
| tree | 52d4d2258168b64286aab0df5310c986549a5f12 /src/cmd | |
| parent | a7295523336cd5af59e50442071471402f3966c9 (diff) | |
| download | go-41d75933d79bc094a5e522bf67e6e182cbd65450.tar.xz | |
cmd/ld: fix operator precedence
LGTM=rsc
R=gobot, dave
CC=golang-codereviews, iant, rsc
https://golang.org/cl/114420043
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/ld/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
