about summary refs log tree commit diff
path: root/src/test/bench/std-smallintmap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/bench/std-smallintmap.rs')
-rw-r--r--src/test/bench/std-smallintmap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bench/std-smallintmap.rs b/src/test/bench/std-smallintmap.rs
index 2e812ba2d09..be2bd051cad 100644
--- a/src/test/bench/std-smallintmap.rs
+++ b/src/test/bench/std-smallintmap.rs
@@ -53,11 +53,11 @@ fn main() {
         check_sequential(0u, max, &map);
         let end = extra::time::precise_time_s();
 
-        checkf += (end - mid) as float;
-        appendf += (mid - start) as float;
+        checkf += (end - mid) as f64;
+        appendf += (mid - start) as f64;
     }
 
-    let maxf = max as float;
+    let maxf = max as f64;
 
     io::stdout().write_str(format!("insert(): {:?} seconds\n", checkf));
     io::stdout().write_str(format!("        : {} op/sec\n", maxf/checkf));