diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2004-01-02 19:23:29 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2004-01-02 19:23:29 +0000 |
commit | 0c7aecb88dc696f66f49f3bed54a037361a26b8d (patch) | |
tree | 32bde8a45b8881d3d121fd39cc1270980f596096 /byterun/str.c | |
parent | 7ba8c1ca1d044232ed6d81d04a8c46800cf15097 (diff) |
depollution suite (et fin?) (PR#1914 et PR#1956)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/str.c')
-rw-r--r-- | byterun/str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/str.c b/byterun/str.c index 6a61849e3..08bbf839e 100644 --- a/byterun/str.c +++ b/byterun/str.c @@ -53,14 +53,14 @@ CAMLprim value caml_create_string(value len) CAMLprim value caml_string_get(value str, value index) { long idx = Long_val(index); - if (idx < 0 || idx >= caml_string_length(str)) array_bound_error(); + if (idx < 0 || idx >= caml_string_length(str)) caml_array_bound_error(); return Val_int(Byte_u(str, idx)); } CAMLprim value caml_string_set(value str, value index, value newval) { long idx = Long_val(index); - if (idx < 0 || idx >= caml_string_length(str)) array_bound_error(); + if (idx < 0 || idx >= caml_string_length(str)) caml_array_bound_error(); Byte_u(str, idx) = Int_val(newval); return Val_unit; } |