Skip to content

Commit

Permalink
Only use zooms <= u32::MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed Feb 6, 2025
1 parent fee242d commit 57a0e71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bigtools/src/bbi/bbiwrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ pub(crate) fn write_zoom_vals<
reduced_size as u64 > data_size / 2
})
.take(options.max_zooms as usize)
.take_while(|s| s.0 <= u32::MAX as u64)
.map(|s| s.0 as u32)
.collect(),
};
Expand Down

0 comments on commit 57a0e71

Please sign in to comment.