]> Cypherpunks repositories - gostls13.git/commit
cmd/9l: fix bogus C conversion
authorRuss Cox <rsc@golang.org>
Sun, 1 Mar 2015 18:32:49 +0000 (13:32 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 2 Mar 2015 00:14:48 +0000 (00:14 +0000)
commit2fb88eceb39a2801cec6583c572c39bd35ce575e
tree7712c5dc0c09ac729130762cf6317282aca0ae73
parent621d75999f37a5f358c94d6e467b4fe93a377b46
cmd/9l: fix bogus C conversion

Looks like c2go and gcc disagree about the exact meaning of the
usual arithmetic conversions, in a way that broke 9l's archreloc.
Fix it.

It's very hard for me to see why the original C code did not say
what c2go interpreted it to say, but apparently it did not.
This is why Go has explicit numerical conversions.

Change-Id: I75bd73afd1fa4ce9a53c887e1bd7d1e26ff43ae4
Reviewed-on: https://go-review.googlesource.com/6405
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/9l/asm.go
src/cmd/internal/ld/data.go