Commit 96d7c8d4 authored by Nigel Tao's avatar Nigel Tao

exp/draw/x11: temporarily workaround compiler bug 1011.

R=r
CC=golang-dev
https://golang.org/cl/1951041
parent 90a6c918
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment