Skip to content

Commit

Permalink
compatible fix for 1.6.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Sep 13, 2023
1 parent 536dd2b commit 81b03e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hmac.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ proc hash_md5*(s: string): MD5Digest {.procvar.} = toMD5(s)

proc toHex*[T](x: T): string {.inline.} =
when x is Sha1Digest:
result = toLowerAscii($x.SecureHash)
result = toLowerAscii($SecureHash(x))
elif x is MD5Digest:
result = toLowerAscii($x)
else:
Expand Down
2 changes: 1 addition & 1 deletion hmac.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.3.1"
version = "0.3.2"
author = "Huy Doan"
description = "HMAC hashing in Nim"
license = "MIT"
Expand Down

0 comments on commit 81b03e3

Please sign in to comment.