From 369c55f9f2dce34b9cb65ba78ef1649543d11f59 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 18 Oct 2020 23:22:11 +0200 Subject: [PATCH] Revert wrong extern constexpr --- src/nnue/evaluate_nnue.cpp | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/src/nnue/evaluate_nnue.cpp b/src/nnue/evaluate_nnue.cpp index d3f8817..cb1b3f4 100644 --- a/src/nnue/evaluate_nnue.cpp +++ b/src/nnue/evaluate_nnue.cpp @@ -30,7 +30,7 @@ namespace Eval::NNUE { - constexpr uint32_t kpp_board_index[PIECE_NB][COLOR_NB] = { + const uint32_t kpp_board_index[PIECE_NB][COLOR_NB] = { // convention: W - us, B - them // viewed from other side, W and B are reversed { PS_NONE, PS_NONE }, @@ -162,10 +162,6 @@ namespace Eval::NNUE { { PS_NONE, PS_NONE }, { PS_NONE, PS_NONE }, }; - static_assert(kpp_board_index[make_piece(WHITE, PAWN)][WHITE] == PS_W_PAWN); - static_assert(kpp_board_index[make_piece(WHITE, KING)][WHITE] == PS_W_KING); - static_assert(kpp_board_index[make_piece(BLACK, PAWN)][WHITE] == PS_B_PAWN); - static_assert(kpp_board_index[make_piece(BLACK, KING)][WHITE] == PS_B_KING); // Input feature converter LargePagePtr feature_transformer; -- 1.7.0.4