mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
exp/draw/x11: temporarily workaround compiler bug 1011.
R=r CC=golang-dev https://golang.org/cl/1951041
This commit is contained in:
parent
90a6c91890
commit
96d7c8d4a8
@ -16,7 +16,10 @@ func readU16BE(r io.Reader, b []byte) (uint16, os.Error) {
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return uint16(b[0])<<8 + uint16(b[1]), nil
|
||||
// TODO(nigeltao): remove the workaround when bug 1011 gets fixed.
|
||||
//return uint16(b[0])<<8 + uint16(b[1]), nil
|
||||
ret := uint16(b[0])<<8 + uint16(b[1])
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
// readStr reads a length-prefixed string from r, using b as a scratch buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user