From 97df8d6caa91387e5baf40b4ca81dc0102469fad Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 8 Dec 2010 10:44:06 -0800 Subject: [PATCH] Fix redundant cast. --- server/go/openpgp/packet/packet.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/go/openpgp/packet/packet.go b/server/go/openpgp/packet/packet.go index 8031da907..26646b6e0 100644 --- a/server/go/openpgp/packet/packet.go +++ b/server/go/openpgp/packet/packet.go @@ -322,8 +322,7 @@ func readPublicKeyPacket(r io.Reader, length uint16) (pk PublicKeyPacket, err os // RFC 4880, section 12.2 fprint := sha1.New() - fprint.Write([]byte{'\x99', uint8(length >> 8), - uint8(length & 0xff)}) + fprint.Write([]byte{'\x99', uint8(length >> 8), uint8(length)}) fprint.Write(buf[0:6]) // version, timestamp, algorithm pk.CreationTime = uint32(buf[1]) << 24 |