diff --git a/lib/runtime.js b/lib/runtime.js index 2408cfd..a9f063a 100644 --- a/lib/runtime.js +++ b/lib/runtime.js @@ -32,10 +32,10 @@ ----------------------------------------------------------------------------*/ //Provides: angstrom_bigstring_blit_to_bytes -//Requires: string_unsafe_set, caml_ba_get_1 +//Requires: caml_string_unsafe_set, caml_ba_get_1 function angstrom_bigstring_blit_to_bytes(src, src_off, dst, dst_off, len) { for (var i = 0; i < len; i++) { - string_unsafe_set(dst, dst_off + i, caml_ba_get_1(src, src_off + i)); + caml_string_unsafe_set(dst, dst_off + i, caml_ba_get_1(src, src_off + i)); } } @@ -48,9 +48,9 @@ function angstrom_bigstring_blit_to_bigstring(src, src_off, dst, dst_off, len) { } //Provides: angstrom_bigstring_blit_from_bytes -//Requires: caml_ba_set_1, string_unsafe_get +//Requires: caml_ba_set_1, caml_string_unsafe_get function angstrom_bigstring_blit_from_bytes(src, src_off, dst, dst_off, len) { for (var i = 0; i < len; i++) { - caml_ba_set_1(dst, dst_off + i, string_unsafe_get(src, src_off + i)); + caml_ba_set_1(dst, dst_off + i, caml_string_unsafe_get(src, src_off + i)); } }