mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 19:25:30 -05:00
merge from master
This commit is contained in:
commit
90df6f3719
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ let mmap filename =
|
||||||
let fd = Unix.openfile filename [Unix.O_RDONLY] 0 in
|
let fd = Unix.openfile filename [Unix.O_RDONLY] 0 in
|
||||||
let len = Unix.lseek fd 0 Unix.SEEK_END in
|
let len = Unix.lseek fd 0 Unix.SEEK_END in
|
||||||
let _ = Unix.lseek fd 0 Unix.SEEK_SET 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
|
try
|
||||||
of_bigarray b yield;
|
of_bigarray b yield;
|
||||||
Unix.close fd
|
Unix.close fd
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue