Skip to content

Commit

Permalink
Merge pull request #4 from mitschabaude/fix/uint32-to-int64
Browse files Browse the repository at this point in the history
Fix: converting large uint32 to int64
  • Loading branch information
mrmr1993 authored Jan 19, 2023
2 parents cc2231f + e20b581 commit 141e0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function integers_uint32_to_int(i) {
//Provides: integers_uint32_to_int64
//Requires: caml_int64_create_lo_mi_hi
function integers_uint32_to_int64(i) {
return caml_int64_create_lo_mi_hi(i.value & 0xffffff, (i.value >>> 24) & 0xffffff, (i.value >>> 31) & 0xffff);
return caml_int64_create_lo_mi_hi(i.value & 0xffffff, (i.value >>> 24) & 0xffffff, 0);
}

//Provides: integers_uint32_to_string
Expand Down

0 comments on commit 141e0bc

Please sign in to comment.