diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2005-09-22 14:21:50 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2005-09-22 14:21:50 +0000 |
commit | 3de54dec267abf845ca32bd1f6026834cc04d853 (patch) | |
tree | daa34de1fd38e86c2dd0c67896c3c5748511fe1c /byterun/str.c | |
parent | 11524e2578b62fa30620121873aa372b180c0a74 (diff) |
Remplacement long/unsigned long par intnat/uintnat
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 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 8151fa37c..79e4ef81b 100644 --- a/byterun/str.c +++ b/byterun/str.c @@ -52,14 +52,14 @@ CAMLprim value caml_create_string(value len) CAMLprim value caml_string_get(value str, value index) { - long idx = Long_val(index); + intnat idx = Long_val(index); 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); + intnat idx = Long_val(index); if (idx < 0 || idx >= caml_string_length(str)) caml_array_bound_error(); Byte_u(str, idx) = Int_val(newval); return Val_unit; |