all repos — min @ 5525760e59795c8afb4e15945a9a2d72af98d78a

A small but practical concatenative programming language.

Fixed compile error with Nim 2.2.0.
h3rald h3rald@h3rald.com
Sat, 19 Oct 2024 13:18:14 +0000
commit

5525760e59795c8afb4e15945a9a2d72af98d78a

parent

4f1dfc172b5d36c107caca837a71d99b0eeb54f5

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M minpkg/lib/min_crypto.nimminpkg/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)