From 68171ecacaeb0617e3b10c2aaa72d30e5731bf9e Mon Sep 17 00:00:00 2001 From: David Zar Date: Sun, 27 Jul 2014 17:27:53 +0300 Subject: [PATCH] Small code style reformatting No functional change. --- src/bitboard.cpp | 5 ++--- src/pawns.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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; diff --git a/src/pawns.cpp b/src/pawns.cpp index 2f7bb5a6..401977bd 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -102,7 +102,7 @@ namespace { const Square* pl = pos.list(Us); const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)]; - Bitboard ourPawns = pos.pieces(Us, PAWN); + Bitboard ourPawns = pos.pieces(Us , PAWN); Bitboard theirPawns = pos.pieces(Them, PAWN); e->passedPawns[Us] = e->candidatePawns[Us] = 0; @@ -193,7 +193,7 @@ namespace { value += Connected[f][relative_rank(Us, s)]; if (lever) - value += Lever[relative_rank(Us, s)]; + value += Lever[relative_rank(Us, s)]; if (candidate) { -- 2.39.2