From 27969e87cfd66ed96e9add7acfab767594535a21 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 21 Sep 2009 15:44:10 -0700 Subject: [PATCH] add required conversions; bug in compiler let it slip through R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=34860 CL=34864 --- src/pkg/image/png/reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.48.1