From 47562af24123a17b8a5d0e2594229704560d51cb Mon Sep 17 00:00:00 2001 From: narimiran Date: Wed, 13 Feb 2019 10:34:51 +0100 Subject: [PATCH] make it work on Nim devel (0.19.9) "Error: invalid else, all cases are already covered" --- nimPNG.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/nimPNG.nim b/nimPNG.nim index ac3041b..3e94bf5 100644 --- a/nimPNG.nim +++ b/nimPNG.nim @@ -2711,8 +2711,6 @@ proc filterScanLine(output: var DataBuf, scanLine, prevLine: DataBuf, len, byteW #paethPredictor(scanLine[i - byteWidth], 0, 0) is always scanLine[i - byteWidth] for i in byteWidth..len-1: output[i] = chr(scanLine[i].uint - scanLine[i - byteWidth].uint) - else: - raise PNGError("unsupported filter type") proc filterZero(output: var DataBuf, input: DataBuf, w, h, bpp: int) = #the width of a scanline in bytes, not including the filter type