]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix missing address-of operators for LoongArch functable assignments
authorNathan Moinvaziri <nathan@nathanm.com>
Wed, 18 Feb 2026 04:24:36 +0000 (20:24 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 18 Feb 2026 15:29:08 +0000 (16:29 +0100)
functable.c

index b3c611622ccd9f1bd3a300800c513aab91cec78a..f226486f6cc283f40be2c56d4ac099647ee50a3f 100644 (file)
@@ -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