Skip to content

Commit

Permalink
fix high bits in uint32_to_int64
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Jan 19, 2023
1 parent cc2231f commit e20b581
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 e20b581

Please sign in to comment.