diff --git a/cmake/multiarch_avx512_bw.cmake b/cmake/multiarch_avx512_bw.cmake index e1007884..35b4ac6b 100644 --- a/cmake/multiarch_avx512_bw.cmake +++ b/cmake/multiarch_avx512_bw.cmake @@ -65,9 +65,9 @@ check_cxx_source_compiles(" uint8_t PreSieveTable2[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; if (primesieve::has_cpuid_avx512_bw()) - AND_PreSieveTables_avx512(&PreSieveTable1[0], &PreSieveTable1[1], &sieve[0], 10); + AND_PreSieveTables_avx512(&PreSieveTable1[0], &PreSieveTable2[1], &sieve[0], 10); else - AND_PreSieveTables_default(&PreSieveTable1[0], &PreSieveTable1[1], &sieve[0], 10); + AND_PreSieveTables_default(&PreSieveTable1[0], &PreSieveTable2[1], &sieve[0], 10); return (sieve[0] == 0) ? 0 : 1; }