Skip to content

Commit 044dc7b

Browse files
committedDec 9, 2024
Part of fixing official-stockfish#5503 (Cleaner)
bench: 934447
1 parent e17769e commit 044dc7b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
 

‎src/tt.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ std::tuple<bool, TTData, TTWriter> TranspositionTable::probe(const Key key) cons
238238
> tte[i].depth8 - tte[i].relative_age(generation8) * 2)
239239
replace = &tte[i];
240240

241-
return {false, TTData(), TTWriter(replace)};
241+
return {false,
242+
TTData{Move::none(), VALUE_NONE, VALUE_NONE, DEPTH_ENTRY_OFFSET, BOUND_NONE, false},
243+
TTWriter(replace)};
242244
}
243245

244246

‎src/tt.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ struct Cluster;
4646

4747
// A copy of the data already in the entry (possibly collided). `probe` may be racy, resulting in inconsistent data.
4848
struct TTData {
49-
Move move = Move::none();
50-
Value value = VALUE_NONE, eval = VALUE_NONE;
51-
Depth depth = DEPTH_ENTRY_OFFSET;
52-
Bound bound = BOUND_NONE;
53-
bool is_pv = false;
49+
Move move;
50+
Value value, eval;
51+
Depth depth;
52+
Bound bound;
53+
bool is_pv;
5454
};
5555

5656

0 commit comments

Comments
 (0)