Commit 27969e87 authored by Russ Cox's avatar Russ Cox

add required conversions; bug in compiler let it slip through

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=34860
CL=34864
parent 6efd7e6b
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment