From 969e4a5a5a6a6f2b4035bfab6337ec89b9bf767b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 20 Jun 2010 12:45:39 -0700 Subject: undo changes accidentally included in 09c5add99d50 R=ken2 CC=golang-dev http://codereview.appspot.com/1736042 --- src/pkg/image/png/reader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pkg/image/png') diff --git a/src/pkg/image/png/reader.go b/src/pkg/image/png/reader.go index 33f00eb77..fddb70423 100644 --- a/src/pkg/image/png/reader.go +++ b/src/pkg/image/png/reader.go @@ -14,7 +14,6 @@ import ( "image" "io" "os" - "strconv" ) // Color type, as per the PNG spec. @@ -109,7 +108,7 @@ func (d *decoder) parseIHDR(r io.Reader, crc hash.Hash32, length uint32) os.Erro } crc.Write(d.tmp[0:13]) if d.tmp[8] != 8 { - return UnsupportedError("bit depth " + strconv.Itoa(int(d.tmp[8]))) + return UnsupportedError("bit depth") } if d.tmp[10] != 0 || d.tmp[11] != 0 || d.tmp[12] != 0 { return UnsupportedError("compression, filter or interlace method") -- cgit v1.2.3