]> git.sesse.net Git - stockfish/commit
Limit array access in Position
authorprotonspring <mike@whiteley.org>
Thu, 26 Mar 2020 01:57:36 +0000 (19:57 -0600)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 2 Apr 2020 12:40:03 +0000 (14:40 +0200)
commit0b8ce4b3037c0efcb2c8bf10598ec3f4fd919e1a
tree5320ff152c42c8a10ba975f8a7be624cfdbbb3f8
parent209e94203f8c4d0a48405192d1e71c80f28f3159
Limit array access in Position

This is a non-functional code style change that routes all position array accesses to single methods, and adds an assert to check correctness.

Passed STC
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 37312 W: 7378 L: 7246 D: 22688
Ptnml(0-2): 606, 4280, 8762, 4392, 616
https://tests.stockfishchess.org/tests/view/5e7c0c69e42a5c3b3ca2eb3d

closes https://github.com/official-stockfish/Stockfish/pull/2595

No functional change.
src/position.h