Skip to content

Commit

Permalink
Use Bigarray_compat instead of Bigarray into Cstruct_unix module
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Mar 7, 2022
1 parent 9644c0f commit b3ba2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unix/unix_cstruct.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*)

let of_fd fd =
let buffer = Bigarray.(array1_of_genarray (Mmap.V1.map_file fd char c_layout false [|-1|])) in
let buffer = Bigarray_compat.(array1_of_genarray (Mmap.V1.map_file fd char c_layout false [|-1|])) in
Cstruct.of_bigarray buffer

0 comments on commit b3ba2d2

Please sign in to comment.