diff options
Diffstat (limited to 'src/pkg/image/png/reader.go')
-rw-r--r-- | src/pkg/image/png/reader.go | 3 |
1 files changed, 1 insertions, 2 deletions
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") |