fix task local storage: type was too specific

This commit is contained in:
Simon Cruanes 2024-12-04 08:45:26 -05:00
parent fa40cf8825
commit ea1af6ed22
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -41,7 +41,7 @@ let[@inline] set_in_local_hmap (k : 'a Hmap.key) (v : 'a) : unit =
(** [with_in_local_hmap k v f] calls [f()] in a context (** [with_in_local_hmap k v f] calls [f()] in a context
where [k] is bound to [v] in the local hmap. Then it restores the where [k] is bound to [v] in the local hmap. Then it restores the
previous binding for [k]. *) previous binding for [k]. *)
let with_in_local_hmap (k : 'a Hmap.key) (v : 'a) f : unit = let with_in_local_hmap (k : 'a Hmap.key) (v : 'a) f =
let h = get_local_hmap () in let h = get_local_hmap () in
match Hmap.find k h with match Hmap.find k h with
| None -> | None ->