diff --git a/src/movepick.cpp b/src/movepick.cpp index 264d941f6..2e8eb665b 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -51,10 +51,10 @@ namespace { }; CACHE_LINE_ALIGNMENT - const int MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; - const int EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP}; - const int QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; - const int QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; + const uint8_t MainSearchPhaseTable[] = { PH_TT_MOVES, PH_GOOD_CAPTURES, PH_KILLERS, PH_NONCAPTURES, PH_BAD_CAPTURES, PH_STOP}; + const uint8_t EvasionsPhaseTable[] = { PH_TT_MOVES, PH_EVASIONS, PH_STOP}; + const uint8_t QsearchWithChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_QCHECKS, PH_STOP}; + const uint8_t QsearchWithoutChecksPhaseTable[] = { PH_TT_MOVES, PH_QCAPTURES, PH_STOP}; } diff --git a/src/movepick.h b/src/movepick.h index c656deaf4..c71ff1a99 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -64,7 +64,7 @@ private: Bitboard pinned; MoveStack ttMoves[2], killers[2]; int badCaptureThreshold, phase; - const int* phasePtr; + const uint8_t* phasePtr; MoveStack *curMove, *lastMove, *lastGoodNonCapture, *badCaptures; MoveStack moves[MOVES_MAX]; }; diff --git a/src/tt.h b/src/tt.h index ff1cb910f..ee10b3f0d 100644 --- a/src/tt.h +++ b/src/tt.h @@ -120,7 +120,7 @@ public: private: size_t size; TTCluster* entries; - int generation; + uint8_t generation; // To properly compare, size must be smaller then TT stored value }; extern TranspositionTable TT;