about summary refs log tree commit diff
path: root/src/libcore/int-template/int.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/int-template/int.rs')
-rw-r--r--src/libcore/int-template/int.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/int-template/int.rs b/src/libcore/int-template/int.rs
index 96ca59335a5..d990ba97afa 100644
--- a/src/libcore/int-template/int.rs
+++ b/src/libcore/int-template/int.rs
@@ -2,9 +2,9 @@ type T = int;
 const bits: uint = uint::bits;
 
 /// Produce a uint suitable for use in a hash table
-pure fn hash(x: &int) -> uint {
-    let u : uint = *x as uint;
-    uint::hash(&u)
+pure fn hash(x: int) -> uint {
+    let u : uint = x as uint;
+    uint::hash(u)
 }
 
 /// Returns `base` raised to the power of `exponent`