]> git.sesse.net Git - stockfish/blobdiff - src/nnue/evaluate_nnue.cpp
Small cleanups 12
[stockfish] / src / nnue / evaluate_nnue.cpp
index 72d182003a2933ba29532920426d87829cac978b..b5dcd992fa3a70ad557f2ce2cfdd32f364e69700 100644 (file)
@@ -30,7 +30,7 @@
 
 namespace Eval::NNUE {
 
-  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     },
@@ -136,10 +136,10 @@ namespace Eval::NNUE {
   }
 
   // Load eval, from a file stream or a memory stream
-  bool load_eval(std::string streamName, std::istream& stream) {
+  bool load_eval(std::string name, std::istream& stream) {
 
     Initialize();
-    fileName = streamName;
+    fileName = name;
     return ReadParameters(stream);
   }