fix EP_ZOBRIST_IDX macro (oops !)

This commit is contained in:
2024-06-17 07:35:14 +02:00
parent 148fef20ea
commit 2fbad1319e
2 changed files with 6 additions and 5 deletions

View File

@@ -11,8 +11,8 @@
#
SHELL := /bin/bash
#CC := gcc
CC := gcc-13
CC := gcc
#CC := gcc-13
#CC := clang
BEAR := bear
TOUCH := touch
@@ -69,8 +69,9 @@ CPPFLAGS += -DBUG_ON # brlib bug.h
# fen.c
#CPPFLAGS += -DDEBUG_FEN # FEN decoding
# hash.c
CPPFLAGS += -DZOBRIST_VERIFY # chk zobrist consistency
# hash / TT
#CPPFLAGS += -DZOBRIST_VERIFY # double chk zobrist
#CPPFLAGS += -DPERFT_MOVE_HISTORY # perft, keep prev moves
# attack.c
#CPPFLAGS += -DDEBUG_ATTACK_ATTACKERS # sq_attackers

View File

@@ -93,7 +93,7 @@ typedef struct {
* we use the formula:
* idx = ( ( ep & SQUARE_NONE ) >> 3 ) | sq_file(ep);
*/
#define EP_ZOBRIST_IDX(ep) ( ( (ep) >> 3 ) | sq_file(ep) )
#define EP_ZOBRIST_IDX(ep) ( ( ( ep & SQUARE_NONE ) >> 3 ) | sq_file(ep) )
extern hkey_t zobrist_pieces[16][64];
extern hkey_t zobrist_castling[4 * 4 + 1];