Skip to content

Commit 91679aa

Browse files
committed
assert same length
1 parent 5c1b253 commit 91679aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ifd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ impl ImageFileDirectory {
559559
y: &[usize],
560560
mut reader: Box<dyn AsyncFileReader>,
561561
) -> Result<Vec<Bytes>> {
562+
assert_eq!(x.len(), y.len(), "x and y should have same len");
563+
562564
// 1: Get all the byte ranges for all tiles
563565
let byte_ranges: Vec<_> = x
564566
.iter()

0 commit comments

Comments
 (0)