]> git.sesse.net Git - stockfish/blobdiff - src/psqt.cpp
Mark all compile-time constants as constexpr.
[stockfish] / src / psqt.cpp
index cbdce81a26ed4da3c9b03f4cba5ed93f5c7325d9..e0f15c0636042b49da4268577203fc0d8b02e384 100644 (file)
@@ -35,7 +35,7 @@ namespace PSQT {
 // type on a given square a (middlegame, endgame) score pair is assigned. Table
 // is defined for files A..D and white side: it is symmetric for black side and
 // second half of the files.
-const Score Bonus[][RANK_NB][int(FILE_NB) / 2] = {
+constexpr Score Bonus[][RANK_NB][int(FILE_NB) / 2] = {
   { },
   { // Pawn
    { S(  0, 0), S(  0, 0), S(  0, 0), S( 0, 0) },