Skip to content

Commit

Permalink
update OCaml version constraint of Obj.hash_variant (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
kxc-wraikny authored Feb 15, 2025
1 parent 33445f1 commit 2aa8838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classic/kxclib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1469,8 +1469,9 @@ end
module Obj = struct
include Obj

[%%if ocaml_version <= (5, 1, 1)]
[%%if ocaml_version < (5, 4, 0)]
(* latest known version of OCaml using this implementation *)
(* https://github.com/ocaml/ocaml/blob/5.3/runtime/hash.c#L313-L325 *)
let hash_variant s =
let accu = ref 0 in
for i = 0 to String.length s - 1 do
Expand Down

0 comments on commit 2aa8838

Please sign in to comment.