Skip to content

Commit e6b5909

Browse files
committed
Fix load aligned
1 parent 03c07fb commit e6b5909

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ namespace xsimd
468468
XSIMD_INLINE batch_bool<T, A> load_unaligned(bool const* mem, batch_bool<T, A>, requires_arch<neon>) noexcept
469469
{
470470
auto vmem = load_unaligned<A>((unsigned char const*)mem, convert<unsigned char> {}, A {});
471-
auto const zero = batch<T, A> { 0 };
472-
return { zero.data - vmem.data };
471+
auto const zero = batch<unsigned char, A> { 0 };
472+
return { (zero - vmem).data };
473473
}
474474
template <class A, class T, detail::enable_sized_t<T, 1> = 0>
475475
XSIMD_INLINE batch_bool<T, A> load_aligned(bool const* mem, batch_bool<T, A> t, requires_arch<neon> r) noexcept

0 commit comments

Comments
 (0)