From 00c31e87660d9db813871f5aa23661bf6b9bbdcb Mon Sep 17 00:00:00 2001 From: Clyybber Date: Tue, 8 Oct 2019 14:15:47 +0200 Subject: Fixes #12187 (#12321) * Fixes #12187 * Point to fork of compactdict Since the original repo is now archived / read-only --- lib/wrappers/openssl.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/wrappers/openssl.nim') diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index 482062617..46c9d7bd8 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -712,7 +712,7 @@ proc md5_File*(file: string): string {.raises: [IOError,Exception].} = discard md5_Init(ctx) while(let bytes = f.readChars(buf, 0, sz); bytes > 0): - discard md5_Update(ctx, buf[0].addr, bytes) + discard md5_Update(ctx, buf[0].addr, csize bytes) discard md5_Final(buf[0].addr, ctx) f.close @@ -731,7 +731,7 @@ proc md5_Str*(str: string): string = var i = 0 while i < str.len: let L = min(str.len - i, 512) - discard md5_Update(ctx, input[i].addr, L) + discard md5_Update(ctx, input[i].addr, csize L) i += L discard md5_Final(addr res, ctx) -- cgit 1.4.1-2-gfad0