Skip to content

Commit 009bbad

Browse files
committed
core: Remove a FIXME. Closes #2002
It works for negative integers
1 parent cec1a9b commit 009bbad

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libcore/int.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ pure fn negative(x: int) -> bool { ret x < 0; }
3535
pure fn nonpositive(x: int) -> bool { ret x <= 0; }
3636
pure fn nonnegative(x: int) -> bool { ret x >= 0; }
3737

38-
39-
// FIXME: Make sure this works with negative integers.
40-
// See Issue #2002
4138
#[doc = "Produce a uint suitable for use in a hash table"]
4239
pure fn hash(x: int) -> uint { ret x as uint; }
4340

0 commit comments

Comments
 (0)