Skip to content

Commit 0611a8c

Browse files
lu-zeroAmanieu
authored andcommitted
Fix vec_ldl
1 parent 894fe28 commit 0611a8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ mod sealed {
534534
#[inline]
535535
#[target_feature(enable = "altivec")]
536536
#[cfg_attr(test, assert_instr(lvxl))]
537-
pub unsafe fn $fun_lru(off: i32, p: *const $ty) -> t_t_l!($ty) {
538-
let addr = (p as *const i8).offset(off as isize);
537+
pub unsafe fn $fun_lru(off: isize, p: *const $ty) -> t_t_l!($ty) {
538+
let addr = (p as *const i8).offset(off);
539539
transmute(lvxl(addr))
540540
}
541541

@@ -550,7 +550,7 @@ mod sealed {
550550
#[inline]
551551
#[target_feature(enable = "altivec")]
552552
unsafe fn vec_ldl(self, off: isize) -> Self::Result {
553-
$fun(off, self)
553+
$fun_lru(off, self)
554554
}
555555
}
556556
};

0 commit comments

Comments
 (0)