Skip to content

Commit 11272e5

Browse files
committed
Fix: NEON cast
1 parent 423ad99 commit 11272e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/stringzilla/stringzilla.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5817,9 +5817,10 @@ SZ_PUBLIC void sz_move_neon(sz_ptr_t target, sz_cptr_t source, sz_size_t length)
58175817
target += length;
58185818
source += length;
58195819

5820+
sz_u128_vec_t src_vec;
58205821
while (length >= 16) {
58215822
target -= 16, source -= 16, length -= 16;
5822-
sz_u128_vec_t src_vec = vld1q_u8((sz_u8_t const *)source);
5823+
src_vec.u8x16 = vld1q_u8((sz_u8_t const *)source);
58235824
vst1q_u8((sz_u8_t *)target, src_vec.u8x16);
58245825
}
58255826

0 commit comments

Comments
 (0)