1
Fork 0

core: Remove a FIXME. Closes #2002

It works for negative integers
This commit is contained in:
Brian Anderson 2012-03-19 14:14:47 -07:00
parent cec1a9b859
commit 009bbadd92

View file

@ -35,9 +35,6 @@ pure fn negative(x: int) -> bool { ret x < 0; }
pure fn nonpositive(x: int) -> bool { ret x <= 0; }
pure fn nonnegative(x: int) -> bool { ret x >= 0; }
// FIXME: Make sure this works with negative integers.
// See Issue #2002
#[doc = "Produce a uint suitable for use in a hash table"]
pure fn hash(x: int) -> uint { ret x as uint; }