aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2010-12-22 10:28:22 +1100
committerNigel Tao <nigeltao@golang.org>2010-12-22 10:28:22 +1100
commitea70b0d51d2967e747f31be599bd28953831cd53 (patch)
treea7c1bb4584e52a695f741e36c20394fe8388a0f2
parent8cfd9e06762eb5ba3320b071f60710662cc25317 (diff)
downloadgo-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.go2
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)