diff options
author | Nigel Tao <nigeltao@golang.org> | 2010-12-22 10:28:22 +1100 |
---|---|---|
committer | Nigel Tao <nigeltao@golang.org> | 2010-12-22 10:28:22 +1100 |
commit | ea70b0d51d2967e747f31be599bd28953831cd53 (patch) | |
tree | a7c1bb4584e52a695f741e36c20394fe8388a0f2 | |
parent | 8cfd9e06762eb5ba3320b071f60710662cc25317 (diff) | |
download | go-ea70b0d51d2967e747f31be599bd28953831cd53.tar.gz go-ea70b0d51d2967e747f31be599bd28953831cd53.zip |
hash/crc64: fix typo in Sum.
R=agl1
CC=golang-dev
https://golang.org/cl/3772043
-rw-r--r-- | src/pkg/hash/crc64/crc64.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/hash/crc64/crc64.go b/src/pkg/hash/crc64/crc64.go index 89e431977f..8443865645 100644 --- a/src/pkg/hash/crc64/crc64.go +++ b/src/pkg/hash/crc64/crc64.go @@ -80,7 +80,7 @@ func (d *digest) Sum64() uint64 { return d.crc } func (d *digest) Sum() []byte { p := make([]byte, 8) s := d.Sum64() - p[0] = byte(s >> 54) + p[0] = byte(s >> 56) p[1] = byte(s >> 48) p[2] = byte(s >> 40) p[3] = byte(s >> 32) |