From: Russ Cox Date: Mon, 21 Sep 2009 22:44:10 +0000 (-0700) Subject: add required conversions; bug in compiler let it slip through X-Git-Tag: weekly.2009-11-06~520 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=27969e87cfd66ed96e9add7acfab767594535a21;p=gostls13.git add required conversions; bug in compiler let it slip through R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=34860 CL=34864 --- diff --git a/src/pkg/image/png/reader.go b/src/pkg/image/png/reader.go index d715f0c4a2..4be7e130c9 100644 --- a/src/pkg/image/png/reader.go +++ b/src/pkg/image/png/reader.go @@ -62,7 +62,7 @@ type decoder struct { type FormatError string func (e FormatError) String() string { - return "invalid PNG format: " + e; + return "invalid PNG format: " + string(e); } var chunkOrderError = FormatError("chunk out of order") @@ -80,7 +80,7 @@ func (e IDATDecodingError) String() string { type UnsupportedError string func (e UnsupportedError) String() string { - return "unsupported PNG feature: " + e; + return "unsupported PNG feature: " + string(e); } // Big-endian.