[Pkg-ocaml-maint-commits] [approx] 06/08: change String.create to Bytes.create
Eric Cooper
ecc at cmu.edu
Sat Jun 20 17:51:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecc-guest pushed a commit to branch upstream
in repository approx.
commit ffe35d2fcf7d2cfb4c4809f3205bdea9a64342ba
Author: Eric Cooper <ecc at cmu.edu>
Date: Fri Jun 19 21:53:03 2015 -0400
change String.create to Bytes.create
---
approx.ml | 2 +-
url.ml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/approx.ml b/approx.ml
index f4b31d2..acc7d7c 100644
--- a/approx.ml
+++ b/approx.ml
@@ -408,7 +408,7 @@ let cleanup_after url file =
let copy_to dst src =
let len = 4096 in
- let buf = String.create len in
+ let buf = Bytes.create len in
let rec loop () =
match input src buf 0 len with
| 0 -> ()
diff --git a/url.ml b/url.ml
index 55574c1..7420861 100644
--- a/url.ml
+++ b/url.ml
@@ -117,7 +117,7 @@ let download_command headers header_callback =
let iter_body proc chan =
let len = 4096 in
- let buf = String.create len in
+ let buf = Bytes.create len in
let rec loop () =
match input chan buf 0 len with
| 0 -> ()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/approx.git
More information about the Pkg-ocaml-maint-commits
mailing list