Auto merge of #22087 - GuillaumeGomez:int-pow, r=alexcrichton
Fixes issue #22016
This commit is contained in:
commit
0eb0ba38d0
4 changed files with 15 additions and 3 deletions
|
|
@ -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<_>>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue