From 2a87472a4a06fbaf3c449da3fe5e609a1e42050a Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Tue, 17 Feb 2026 20:24:36 -0800 Subject: Fix missing address-of operators for LoongArch functable assignments --- functable.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functable.c b/functable.c index b3c611622c..f226486f6c 100644 --- a/functable.c +++ b/functable.c @@ -306,8 +306,8 @@ static int init_functable(void) { // LOONGARCH #ifdef LOONGARCH_CRC if (cf.loongarch.has_crc) { - ft.crc32 = crc32_loongarch64; - ft.crc32_copy = crc32_copy_loongarch64; + ft.crc32 = &crc32_loongarch64; + ft.crc32_copy = &crc32_copy_loongarch64; } #endif #ifdef LOONGARCH_LSX @@ -319,7 +319,7 @@ static int init_functable(void) { ft.inflate_fast = &inflate_fast_lsx; ft.longest_match = &longest_match_lsx; ft.longest_match_slow = &longest_match_slow_lsx; - ft.slide_hash = slide_hash_lsx; + ft.slide_hash = &slide_hash_lsx; } #endif #ifdef LOONGARCH_LASX @@ -331,7 +331,7 @@ static int init_functable(void) { ft.inflate_fast = &inflate_fast_lasx; ft.longest_match = &longest_match_lasx; ft.longest_match_slow = &longest_match_slow_lasx; - ft.slide_hash = slide_hash_lasx; + ft.slide_hash = &slide_hash_lasx; } #endif -- cgit 0.0.5-2-1-g0f52