mirror of
https://github.com/golang/go
synced 2024-11-19 01:54:39 -07:00
cmd/ld: fix operator precedence
LGTM=rsc R=gobot, dave CC=golang-codereviews, iant, rsc https://golang.org/cl/114420043
This commit is contained in:
parent
a729552333
commit
41d75933d7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user