Skip to content

Commit

Permalink
dune build @fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robur-team committed Mar 11, 2024
1 parent 42e5282 commit d73653f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-c/digestif.ml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ module Unsafe (F : Foreign) (D : Desc) = struct
res

let get_into_bytes t ?(off = 0) buf =
if off < 0 || off >= Bytes.length buf then invalid_arg "offset out of bounds" ;
if off < 0 || off >= Bytes.length buf
then invalid_arg "offset out of bounds" ;
if Bytes.length buf - off < digest_size
then invalid_arg "destination too small" ;
F.Bytes.finalize (Native.dup t) buf off
Expand Down

0 comments on commit d73653f

Please sign in to comment.