Skip to content

Commit 14cc5c1

Browse files
committed
Fix set
1 parent 438eea0 commit 14cc5c1

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
@@ -735,9 +735,9 @@ namespace xsimd
735735
template <class A, class... Args>
736736
XSIMD_INLINE batch_bool<float, A> set(batch_bool<float, A> const&, requires_arch<neon>, Args... args) noexcept
737737
{
738-
using register_type = typename batch_bool<float, A>::register_type;
739738
using unsigned_type = as_unsigned_integer_t<float>;
740-
return register_type { static_cast<unsigned_type>(args ? -1LL : 0LL)... };
739+
auto const out = batch<unsigned_type, A> { static_cast<unsigned_type>(args ? -1LL : 0LL)... };
740+
return { out.data };
741741
}
742742

743743
/*******

0 commit comments

Comments
 (0)