diff options
author | Damien Doligez <damien.doligez-inria.fr> | 1997-06-16 17:07:11 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 1997-06-16 17:07:11 +0000 |
commit | c4fb76de04783aea39a97b9279ea7adf5fdacfa8 (patch) | |
tree | 74c929071e0216cf13d517110f18a968016a3108 | |
parent | 2fef873f1b65b1dc112c2662f781e22a855b2d83 (diff) |
Fix: bug dans le calcul de la longueur max d'une chaine.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1616 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | byterun/str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/str.c b/byterun/str.c index 59d314043..d634d1fa7 100644 --- a/byterun/str.c +++ b/byterun/str.c @@ -41,7 +41,7 @@ value create_string(len) /* ML */ value len; { mlsize_t size = Long_val(len); - if (size > Max_wosize * sizeof(value) - 2) invalid_argument("String.create"); + if (size > Bsize_wsize (Max_wosize) - 1) invalid_argument("String.create"); return alloc_string(size); } |