From c48ed15007953bd9bb73c3352b163c3f6db03099 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Oct 2025 16:12:39 +0530 Subject: [PATCH] ... --- tools/utils/images/convert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/utils/images/convert.go b/tools/utils/images/convert.go index 590828a80..0545eacfc 100644 --- a/tools/utils/images/convert.go +++ b/tools/utils/images/convert.go @@ -17,9 +17,9 @@ var _ = fmt.Print func encode_rgba(output io.Writer, img image.Image) (err error) { var final_img *image.NRGBA - switch img.(type) { + switch ti := img.(type) { case *image.NRGBA: - final_img = img.(*image.NRGBA) + final_img = ti default: b := img.Bounds() final_img = image.NewNRGBA(image.Rect(0, 0, b.Dx(), b.Dy()))