X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=hlist.ml;h=e3ad907f7275fbfaad5189d5dd5476f24006b662;hb=9f227961ae2219728e4cdd56e4d4c4e7165e4306;hp=5509871306deec04bd9e1267dcc5bb3e4cc3b156;hpb=ded94d764331b3ff91f9d5748ec257df4f9d36a7;p=SXSI%2Fxpathcomp.git diff --git a/hlist.ml b/hlist.ml index 5509871..e3ad907 100644 --- a/hlist.ml +++ b/hlist.ml @@ -13,7 +13,7 @@ module type S = sig type data = Data.t type t = Node.t val hash : t -> int - val uid : t -> int + val uid : t -> Uid.t val make : data -> t val equal : t -> t -> bool val nil : t @@ -44,7 +44,7 @@ struct | _ -> false let hash = function | Nil -> 0 - | Cons(a,aa) -> HASHINT3(PRIME3,H.uid a, aa.Node.id) + | Cons(a,aa) -> HASHINT3(PRIME3,Uid.to_int (H.uid a),Uid.to_int( aa.Node.id)) end type data = Data.t type t = Node.t