Skip to content

Commit

Permalink
Merge pull request #43 from jangko/fix_hash_function
Browse files Browse the repository at this point in the history
fix #42, bad RGBA8 hash proc
  • Loading branch information
jangko authored May 1, 2020
2 parents 11bb17b + 3228a2d commit d7d413c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ install:

build_script:
- cd C:\projects\%APPVEYOR_PROJECT_SLUG%
#- nimble install -y > nul
- nimble install -y > nul
test_script:
- nimble tests

Expand Down
1 change: 1 addition & 0 deletions nimPNG.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d7d413c

Please sign in to comment.