Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

Commit 881f3ae

Browse files
=Federico Ceratto
=
authored and
Federico Ceratto
committed
Corrected implicit conversion to cstring
1 parent d073c1f commit 881f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsodium/sodium.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ proc finalize*(self: GenericHash): string =
889889
h_len = csize_t self.out_len
890890
rc = crypto_generichash_final(s, h, h_len)
891891
check_rc rc
892-
assert h.len == self.out_len
892+
assert cstring(h).len == self.out_len
893893

894894

895895
# Short-input hashing

0 commit comments

Comments
 (0)