diff options
| author | Scott Gasch <[email protected]> | 2026-09-20 10:20:16 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2026-09-20 10:20:16 -0700 |
| commit | 48a958fb6e14607a68067a09b4a4cb576bf6b742 (patch) | |
| tree | 8951c83088995df8c3e5efe328634478c27ba5b4 /src/search.c | |
| parent | 8c0d66f13f08cb5e760d787a878260ad67d17c13 (diff) | |
INFINITY -> INFINITY_SCORE to not collide with math.h.
Diffstat (limited to 'src/search.c')
| -rw-r--r-- | src/search.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c index cb82ea4..0362701 100644 --- a/src/search.c +++ b/src/search.c @@ -165,7 +165,7 @@ Search(IN SEARCHER_THREAD_CONTEXT *ctx, PLY_INFO *pi = &ctx->sPlyInfo[ctx->uPly]; CUMULATIVE_SEARCH_FLAGS *pf = &ctx->sSearchFlags; MOVE mvLast = (pi-1)->mv; - SCORE iBestScore = -INFINITY; + SCORE iBestScore = -INFINITY_SCORE; SCORE iInitialAlpha; SCORE iEval; MOVE mv, mvBest, mvHash; @@ -414,7 +414,7 @@ Search(IN SEARCHER_THREAD_CONTEXT *ctx, case TRY_HASH_MOVE: uStage++; x = 0; - ASSERT(iBestScore == -INFINITY); + ASSERT(iBestScore == -INFINITY_SCORE); ASSERT(uLegalMoves == 0); if (mvHash.uMove != 0) { @@ -921,7 +921,7 @@ Search(IN SEARCHER_THREAD_CONTEXT *ctx, if (uNextDepth >= MAX_DEPTH_PER_SEARCH) uNextDepth = 0; pf->iCumulativeExtend += iExtend; ASSERT(pf->fAvoidNullmove == FALSE); - if (iBestScore == -INFINITY) + if (iBestScore == -INFINITY_SCORE) { // First move, full a..b window. ASSERT(uLegalMoves == 1); @@ -2296,7 +2296,7 @@ QSearch(IN SEARCHER_THREAD_CONTEXT *ctx, } #endif - // Note: iBestScore can be +INFINITY or -INFINITY here even in the + // Note: iBestScore can be +INFINITY_SCORE or -INFINITY_SCORE here even in the // absence of a legitimate mate detected if we disallowed stand // pat due to perceived danger early on, when the a..b window had // an extreme bound. This is "legitimate" but weird. |
