summaryrefslogtreecommitdiff
path: root/src/pkg/hash/crc32/crc32.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/hash/crc32/crc32.go')
-rw-r--r--src/pkg/hash/crc32/crc32.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pkg/hash/crc32/crc32.go b/src/pkg/hash/crc32/crc32.go
index 236d77872..a2a21a06f 100644
--- a/src/pkg/hash/crc32/crc32.go
+++ b/src/pkg/hash/crc32/crc32.go
@@ -123,11 +123,7 @@ func (d *digest) Sum32() uint32 { return d.crc }
func (d *digest) Sum(in []byte) []byte {
s := d.Sum32()
- in = append(in, byte(s>>24))
- in = append(in, byte(s>>16))
- in = append(in, byte(s>>8))
- in = append(in, byte(s))
- return in
+ return append(in, byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
}
// Checksum returns the CRC-32 checksum of data