diff options
Diffstat (limited to '')
| -rw-r--r-- | lib/interop.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/interop.ml b/lib/interop.ml index 3b7a3d2..ea25e0c 100644 --- a/lib/interop.ml +++ b/lib/interop.ml @@ -1,7 +1,8 @@ open Ctypes module Sha256 = struct - let compute_hash content = + type t = string + let compute_hash content: t = let size_with_null_terminator = C.Types.hash_size + 1 in let buf = Ctypes.allocate_n char ~count:size_with_null_terminator in let () = C.Functions.compute_hash buf (Bytes.to_string content) in |
