1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:04:40 -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:
Nigel Tao 2010-08-10 15:53:19 +10:00
parent 90a6c91890
commit 96d7c8d4a8

View File

@ -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.