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
1 changed files with 1 additions and 1 deletions

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