Skip to content

Commit

Permalink
Fix eliom client with jsoo 5.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Dec 2, 2024
1 parent da2540f commit 90080af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/client/eliom_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//Provides: caml_unwrap_value_from_string
//Requires: caml_failwith, caml_marshal_constants
//Requires: caml_int64_float_of_bits, caml_int64_of_bytes, caml_new_string
//Requires: caml_int64_float_of_bits, caml_int64_of_bytes, caml_string_of_jsbytes
//Requires: caml_jsbytes_of_string, caml_callback
var caml_unwrap_value_from_string = function (){
function StringReader (s, i) { this.s = caml_jsbytes_of_string(s); this.i = i; }
Expand Down Expand Up @@ -34,7 +34,7 @@ var caml_unwrap_value_from_string = function (){
readstr:function (len) {
var i = this.i;
this.i = i + len;
return caml_new_string(this.s.substring(i, i + len));
return caml_string_of_jsbytes(this.s.substring(i, i + len));
}
}
function caml_float_of_bytes (a) {
Expand Down

0 comments on commit 90080af

Please sign in to comment.