bugfix: used wrong variable type | bench 5480424

This commit is contained in:
rektdie committed 2025-10-07 20:59:42 +02:00
1 parent 1e62f6adef
commit f71e6c20e1
1 file changed
+2 -3
+2 -3
View File
@@ -13,15 +13,14 @@ namespace SEARCH {
void InitLMRTable() {
for (int i = 0; i < 2; i++) {
const bool base = i ? lmrBaseQuiet : lmrBaseNoisy;
const bool divisor = i ? lmrDivisorQuiet : lmrDivisorNoisy;
const double base = i ? lmrBaseQuiet : lmrBaseNoisy;
const double divisor = i ? lmrDivisorQuiet : lmrDivisorNoisy;
for (int depth = 0; depth <= MAX_DEPTH; depth++) {
for (int move = 0; move < MAX_MOVES; move++) {
if (depth == 0 || move == 0) {
lmrTable[i][depth][move] = 0;
} else {
lmrTable[i][depth][move] = std::floor(base + std::log(depth) * std::log(move) / divisor);
}
}