summaryrefslogtreecommitdiff
path: root/src/reporting_basic.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/reporting_basic.ml')
-rw-r--r--src/reporting_basic.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reporting_basic.ml b/src/reporting_basic.ml
index 166e0517..af1f85d0 100644
--- a/src/reporting_basic.ml
+++ b/src/reporting_basic.ml
@@ -97,7 +97,7 @@
let rec skip_lines in_chan = function
| n when n <= 0 -> ()
- | n -> input_line in_chan; skip_lines in_chan (n - 1)
+ | n -> ignore (input_line in_chan); skip_lines in_chan (n - 1)
let rec read_lines in_chan = function
| n when n <= 0 -> []
@@ -186,9 +186,9 @@ let read_from_file_pos2 p1 p2 =
let ic = open_in p1.Lexing.pos_fname in
let _ = seek_in ic s in
let l = (e - s) in
- let buf = String.create l in
+ let buf = Bytes.create l in
let _ = input ic buf 0 l in
- let _ = match multi with None -> () | Some sk -> String.fill buf 0 sk ' ' in
+ let _ = match multi with None -> () | Some sk -> Bytes.fill buf 0 sk ' ' in
let _ = close_in ic in
(buf, not (multi = None))