1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:24:41 -07:00

hash/crc64: fix typo in Sum.

R=agl1
CC=golang-dev
https://golang.org/cl/3772043
This commit is contained in:
Nigel Tao 2010-12-22 10:28:22 +11:00
parent 8cfd9e0676
commit ea70b0d51d

View File

@ -80,7 +80,7 @@ func (d *digest) Sum64() uint64 { return d.crc }
func (d *digest) Sum() []byte { func (d *digest) Sum() []byte {
p := make([]byte, 8) p := make([]byte, 8)
s := d.Sum64() s := d.Sum64()
p[0] = byte(s >> 54) p[0] = byte(s >> 56)
p[1] = byte(s >> 48) p[1] = byte(s >> 48)
p[2] = byte(s >> 40) p[2] = byte(s >> 40)
p[3] = byte(s >> 32) p[3] = byte(s >> 32)