X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=b3dbd00be2f6fe5583a2e16ad7c4e2771b504609;hp=ff10b4ff7026524955953dc0d76806b3e32b2d3f;hb=68171ecacaeb0617e3b10c2aaa72d30e5731bf9e;hpb=6b82a234d03bb70e538ace708c128238811f06e7 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index ff10b4ff..b3dbd00b 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -254,9 +254,8 @@ namespace { void init_magics(Bitboard table[], Bitboard* attacks[], Bitboard magics[], Bitboard masks[], unsigned shifts[], Square deltas[], Fn index) { - int MagicBoosters[][8] = { { 969, 1976, 2850, 542, 2069, 2852, 1708, 164 }, - { 3101, 552, 3555, 926, 834, 26, 2131, 1117 } }; - + int MagicBoosters[][RANK_NB] = { { 969, 1976, 2850, 542, 2069, 2852, 1708, 164 }, + { 3101, 552, 3555, 926, 834, 26, 2131, 1117 } }; RKISS rk; Bitboard occupancy[4096], reference[4096], edges, b; int i, size, booster;