about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-01 08:59:29 +0000
committerbors <bors@rust-lang.org>2015-03-01 08:59:29 +0000
commit0eb0ba38d0893f711e68321d3e6fe28a929cd00e (patch)
treef352105235425f677a950f1c88bd5391da0f9721 /src/libstd
parent0905c8a5ec856a6b972fcb239df2b8f6e82d2418 (diff)
parent1c4fb909ffad8328983d893f2fefdb17215f2b21 (diff)
downloadrust-0eb0ba38d0893f711e68321d3e6fe28a929cd00e.tar.gz
rust-0eb0ba38d0893f711e68321d3e6fe28a929cd00e.zip
Auto merge of #22087 - GuillaumeGomez:int-pow, r=alexcrichton
Fixes issue #22016
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs
index 15ae8b027e1..d776079efae 100644
--- a/src/libstd/num/mod.rs
+++ b/src/libstd/num/mod.rs
@@ -1830,6 +1830,6 @@ mod bench {
     #[bench]
     fn bench_pow_function(b: &mut Bencher) {
         let v = (0..1024).collect::<Vec<_>>();
-        b.iter(|| {v.iter().fold(0, |old, new| old.pow(*new));});
+        b.iter(|| {v.iter().fold(0, |old, new| old.pow(*new as u32));});
     }
 }