Auto merge of #22087 - GuillaumeGomez:int-pow, r=alexcrichton

Fixes issue #22016
This commit is contained in:
bors 2015-03-01 08:59:29 +00:00
commit 0eb0ba38d0
4 changed files with 15 additions and 3 deletions

View file

@ -109,7 +109,7 @@ fn main() {
let messages = range_step(min_depth, max_depth + 1, 2).map(|depth| {
use std::num::Int;
let iterations = 2.pow((max_depth - depth + min_depth) as usize);
let iterations = 2.pow((max_depth - depth + min_depth) as u32);
thread::scoped(move || inner(depth, iterations))
}).collect::<Vec<_>>();