From 08ca30bbfad04d3ca1bf7ae75c291b91ecb00aef Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Dec 2008 03:05:37 -0800 Subject: change *map to map; *chan to chan; new(T) to new(*T) fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581 --- src/lib/hash/adler32.go | 2 +- src/lib/hash/crc32.go | 2 +- src/lib/hash/md5.go | 2 +- src/lib/hash/sha1.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/hash') diff --git a/src/lib/hash/adler32.go b/src/lib/hash/adler32.go index cebbfb212e..f1aa732445 100644 --- a/src/lib/hash/adler32.go +++ b/src/lib/hash/adler32.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Adler-32 checksum. +// Adler-32 checksum. // Defined in RFC 1950: // Adler-32 is composed of two sums accumulated per byte: s1 is // the sum of all bytes, s2 is the sum of all s1 values. Both sums diff --git a/src/lib/hash/crc32.go b/src/lib/hash/crc32.go index 4ab8495b5d..9f6aa7d351 100644 --- a/src/lib/hash/crc32.go +++ b/src/lib/hash/crc32.go @@ -25,7 +25,7 @@ export const ( Koopman = 0xeb31d82e; ) -// TODO(rsc): Change to [256]uint32 +// TODO(rsc): Change to [256]uint32 once 6g can handle it. export type Table []uint32 export func MakeTable(poly uint32) Table { diff --git a/src/lib/hash/md5.go b/src/lib/hash/md5.go index 7e90e34119..773ff4a5d6 100644 --- a/src/lib/hash/md5.go +++ b/src/lib/hash/md5.go @@ -27,7 +27,7 @@ export type Digest struct { } export func NewDigest() *Digest { - d := new(Digest); + d := new(*Digest); d.s[0] = A; d.s[1] = B; d.s[2] = C; diff --git a/src/lib/hash/sha1.go b/src/lib/hash/sha1.go index 3aa6903a4a..97333473b4 100644 --- a/src/lib/hash/sha1.go +++ b/src/lib/hash/sha1.go @@ -28,7 +28,7 @@ export type Digest struct { } export func NewDigest() *Digest { - d := new(Digest); + d := new(*Digest); d.h[0] = H0; d.h[1] = H1; d.h[2] = H2; -- cgit v1.3