Skip to content

Commit 6937be5

Browse files
emmatypingbluss
authored andcommitted
Use isize math for stride doubling
1 parent 533466f commit 6937be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl_raw_views.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ where
173173
if mem::size_of::<T>() != 0 {
174174
for ax in 0..strides.ndim() {
175175
if dim[ax] > 1 {
176-
strides[ax] *= 2;
176+
strides[ax] = (strides[ax] as isize * 2) as usize;
177177
}
178178
}
179179
}

0 commit comments

Comments
 (0)