official-stockfish/Stockfish — pull request #165 by rnysto (2014-12-19 18:15:06+00:00)
Title: Solve GCC warnings in tbprobe.cpp

GCC gives several -Warray-bounds warnings. In the present case they are not justified, because the bb bitboard cannot have more than TBPIECES bits set. If it did, we would not be calling the function in the first place. Patch adds bound guards to make GCC happy and get rid of these warnings.