From 009bbadd9202b12dcf3aa779129cd7e42005695c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 19 Mar 2012 14:14:47 -0700 Subject: [PATCH] core: Remove a FIXME. Closes #2002 It works for negative integers --- src/libcore/int.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libcore/int.rs b/src/libcore/int.rs index f06f18eddd74..5aed338bd6bf 100644 --- a/src/libcore/int.rs +++ b/src/libcore/int.rs @@ -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; }