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:
parent
f189308fb4
commit
cb051a3a1d
@ -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--
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user