diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-02-26 13:30:26 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-02-26 13:30:26 +0000 |
commit | 54467b98f528f1f908f63b859447d9fc97775cfe (patch) | |
tree | ed195d3ba9e734d4105df6acd2846b5dd4f24698 /otherlibs/labltk/browser/shell.ml | |
parent | ef938a78783d07d4c19cf55de1d7e72bd1f00900 (diff) |
ajout du label size: pour Hashtbl.create et Buffer.create
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2870 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/browser/shell.ml')
-rw-r--r-- | otherlibs/labltk/browser/shell.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/browser/shell.ml b/otherlibs/labltk/browser/shell.ml index f63388754..88492cc9e 100644 --- a/otherlibs/labltk/browser/shell.ml +++ b/otherlibs/labltk/browser/shell.ml @@ -44,7 +44,7 @@ let dump_mem ?(:pos = 0) ?:len obj = match len with | None -> Obj.size obj * Sys.word_size / 8 - pos | Some x -> x in - let buf = Buffer.create 256 in + let buf = Buffer.create size:256 in for i = pos to len - 1 do let c = String.unsafe_get (Obj.obj obj) i in Buffer.add_string buf (Printf.sprintf "%02x" (Char.code c)) @@ -74,7 +74,7 @@ object (self) val h = new history () val mutable alive = true val mutable reading = false - val ibuffer = Buffer.create 1024 + val ibuffer = Buffer.create size:1024 val imutex = Mutex.create () val mutable ithreads = [] method alive = alive |