use older Bigarray constructors

This commit is contained in:
Simon Cruanes 2015-01-16 11:48:12 +01:00
parent d2b6c03e3d
commit 27b3a9543e

View file

@ -36,7 +36,7 @@ let mmap filename =
let fd = Unix.openfile filename [Unix.O_RDONLY] 0 in
let len = Unix.lseek fd 0 Unix.SEEK_END in
let _ = Unix.lseek fd 0 Unix.SEEK_SET in
let b = Bigarray.Array1.map_file fd Bigarray.Char Bigarray.C_layout false len in
let b = Bigarray.Array1.map_file fd Bigarray.char Bigarray.c_layout false len in
try
of_bigarray b yield;
Unix.close fd