Fix redundant cast.

This commit is contained in:
Brad Fitzpatrick 2010-12-08 10:44:06 -08:00
parent bfcc2ae8f5
commit 97df8d6caa
1 changed files with 1 additions and 2 deletions

View File

@ -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 |