Skip to content

Commit

Permalink
Merge pull request #1 from skolemlabs/feat/unsigned-to-hexstring
Browse files Browse the repository at this point in the history
zbaylin authored Jul 10, 2023
2 parents 141e0bc + 00effb6 commit bff335d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime.js
Original file line number Diff line number Diff line change
@@ -150,6 +150,12 @@ function integers_uint32_to_string(i) {
return caml_new_string(i.value.toString());
}

//Provides: integers_uint32_to_hexstring
//Requires: caml_new_string
function integers_uint32_to_hexstring(i) {
return caml_new_string(i.value.toString(16));
}

//Provides: integers_uint64_add
//Requires: caml_int64_add
function integers_uint64_add(x, y) {
@@ -322,6 +328,12 @@ function integers_uint64_to_string(i) {
return caml_int64_format(caml_new_string("%u"), i);
}

//Provides: integers_uint64_to_hexstring
//Requires: caml_int64_format, caml_new_string
function integers_uint64_to_hexstring(i) {
return caml_int64_format(caml_new_string("%x"), i);
}

//Provides: integers_uint8_of_string
//Requires: integers_uint32_of_string
function integers_uint8_of_string(x) {

0 comments on commit bff335d

Please sign in to comment.