From a07678fb410178c3cf2d8c9f3c97146a66f19421 Mon Sep 17 00:00:00 2001 From: andri lim Date: Fri, 1 May 2020 10:29:36 +0700 Subject: [PATCH] fix #42, bad RGBA8 hash proc --- nimPNG.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/nimPNG.nim b/nimPNG.nim index ab23a64..eda7722 100644 --- a/nimPNG.nim +++ b/nimPNG.nim @@ -1279,6 +1279,7 @@ proc hash*(c: RGBA8): Hash = h = h !& ord(c.g) h = h !& ord(c.b) h = h !& ord(c.a) + result = !$(h) proc RGBA8FromGrey8[T](p: var RGBA8, input: openArray[T], px: int, mode: PNGColorMode) = p.r = input[px]