Skip to content

Commit

Permalink
fix: jsoo (#510)
Browse files Browse the repository at this point in the history
Sys.word_size is 32 on jsoo
  • Loading branch information
rgrinberg authored Sep 30, 2024
1 parent 2824665 commit 6a6e0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hash_set.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ open Import
module Array = struct
type nonrec t = Bytes.t

let words = Sys.word_size / 8
let words = 8
let[@inline] length t = Bytes.length t / words
let[@inline] unsafe_get t i = Int64.to_int (Bytes.get_int64_ne t (i * words))
let[@inline] unsafe_set t i x = Bytes.set_int64_ne t (i * words) (Int64.of_int x)
Expand Down

0 comments on commit 6a6e0d3

Please sign in to comment.