make it work on Nim devel (0.19.9)

"Error: invalid else, all cases are already covered"
This commit is contained in:
narimiran 2019-02-13 10:34:51 +01:00
parent 36f845e12a
commit 47562af241

View File

@ -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