From: rich Date: Wed, 19 Jul 2006 09:41:58 +0000 (+0000) Subject: Move to OCaml 3.09.1 - actually finds some previously undetected X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=0d44d143d3753b20106e7e11192f41b0451f34ba;p=ocaml-csv.git Move to OCaml 3.09.1 - actually finds some previously undetected bugs in the code. --- diff --git a/csv.ml b/csv.ml index 82d8d02..6ca424b 100644 --- a/csv.ml +++ b/csv.ml @@ -1,6 +1,6 @@ (* csv.ml - comma separated values parser * - * $Id: csv.ml,v 1.10 2006-04-21 12:44:42 rich Exp $ + * $Id: csv.ml,v 1.11 2006-07-19 09:41:58 rich Exp $ *) (* The format of CSV files: @@ -379,7 +379,7 @@ let save_out_readable chan csv = try List.combine r1 r2 with Invalid_argument "List.combine" -> - failwith "Csv.save_out_readable: internal error: length r1 = %d, length r2 = %d" (List.length r1) (List.length r2) in + failwith (sprintf "Csv.save_out_readable: internal error: length r1 = %d, length r2 = %d" (List.length r1) (List.length r2)) in List.map (fun ((a : int), (b : int)) -> max a b) rp in List.fold_left max2rows lengths_row1 lengths_rest in