Skip to content

Commit 60a8d77

Browse files
committed
Fix benchmark dataset size types
Signed-off-by: netthier <[email protected]>
1 parent c652ab8 commit 60a8d77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benches/bench.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ fn bench_contourbuilder_isobands_volcano_without_xy_step_xy_origin(b: &mut Bench
9090
.iter()
9191
.map(|x| x.as_f64().unwrap())
9292
.collect();
93-
let h = raw_data["height"].as_u64().unwrap() as u32;
94-
let w = raw_data["width"].as_u64().unwrap() as u32;
93+
let h = raw_data["height"].as_u64().unwrap() as usize;
94+
let w = raw_data["width"].as_u64().unwrap() as usize;
9595

9696
b.iter(|| {
9797
black_box(
@@ -118,8 +118,8 @@ fn bench_contourbuilder_isobands_pot_pop_fr_without_xy_step_xy_origin(b: &mut Be
118118
.iter()
119119
.map(|x| x.as_f64().unwrap())
120120
.collect();
121-
let h = raw_data["height"].as_u64().unwrap() as u32;
122-
let w = raw_data["width"].as_u64().unwrap() as u32;
121+
let h = raw_data["height"].as_u64().unwrap() as usize;
122+
let w = raw_data["width"].as_u64().unwrap() as usize;
123123

124124
b.iter(|| {
125125
black_box(

0 commit comments

Comments
 (0)