Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Hashtbl.hash is not compatible with (=) #5222
Original bug ID: 5222
Hashtbl.hash x associates a positive integer to any value of any type. It is guaranteed that if x = y or Pervasives.compare x y = 0, then hash x = hash y.
Hashtbl.hash (+0.) ;;
Hashtbl.hash (-0.) ;;
(+0.) = (-0.) ;;