Commit cb051a3a authored by Quan Yong Zhai's avatar Quan Yong Zhai Committed by Rob Pike

gob: minor cleanup

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4754050
parent f189308f
......@@ -62,7 +62,7 @@ func (state *encoderState) encodeUint(x uint64) {
var n, m int
m = uint64Size
for n = 1; x > 0; n++ {
state.buf[m] = uint8(x & 0xFF)
state.buf[m] = uint8(x)
x >>= 8
m--
}
......
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