Fixed compile error with Nim 2.2.0.
h3rald h3rald@h3rald.com
Sat, 19 Oct 2024 13:18:14 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
minpkg/lib/min_crypto.nim
→
minpkg/lib/min_crypto.nim
@@ -48,8 +48,8 @@ i.push s.getString.decode.newVal
when defined(ssl): - proc hash(s: string, kind: EVP_MD, size: int): string = - var hash = alloc[ptr cuint](size) + proc hash(s: string, kind: EVP_MD, size: Natural): string = + var hash = alloc(size) let ctx = EVP_MD_CTX_new() discard EVP_DigestInit_ex(ctx, kind, nil) discard EVP_DigestUpdate(ctx, s.cstring, s.len.cuint)