]> Cypherpunks repositories - gostls13.git/commitdiff
gob: minor cleanup
authorQuan Yong Zhai <qyzhai@gmail.com>
Mon, 18 Jul 2011 00:48:31 +0000 (10:48 +1000)
committerRob Pike <r@golang.org>
Mon, 18 Jul 2011 00:48:31 +0000 (10:48 +1000)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4754050

src/pkg/gob/encode.go

index 941e26052fde6eac342eac6ed95fbdd34fe0303e..78455981ebca886d97623be04d5c30f50b9887b7 100644 (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--
        }