1
0
mirror of https://github.com/golang/go synced 2024-11-25 00:07:56 -07:00

gob: minor cleanup

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4754050
This commit is contained in:
Quan Yong Zhai 2011-07-18 10:48:31 +10:00 committed by Rob Pike
parent f189308fb4
commit cb051a3a1d

View File

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