]> git.sesse.net Git - stockfish/commitdiff
Fix typo in method name
authorSebastian Buchwald <UniQP@web.de>
Thu, 23 Feb 2023 18:01:51 +0000 (19:01 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Fri, 24 Feb 2023 19:12:53 +0000 (20:12 +0100)
closes https://github.com/official-stockfish/Stockfish/pull/4404

No functional change

src/nnue/nnue_feature_transformer.h

index 13f1604fe1365d1b07a7bc2ef6a4cd111dade85f..b0d5743e6694e66902a532d0cc0ab382e133f6d2 100644 (file)
@@ -365,7 +365,7 @@ namespace Stockfish::Eval::NNUE {
     //       by repeatedly applying ->previous from states_to_update[i+1] or states_to_update[i] == nullptr.
     //       computed_st must be reachable by repeatadly applying ->previous on states_to_update[0], if not nullptr.
     template<Color Perspective, size_t N>
-    void update_accumulator_incremetal(const Position& pos, StateInfo* computed_st, StateInfo* states_to_update[N]) const {
+    void update_accumulator_incremental(const Position& pos, StateInfo* computed_st, StateInfo* states_to_update[N]) const {
       static_assert(N > 0);
       assert(states_to_update[N-1] == nullptr);
 
@@ -630,7 +630,7 @@ namespace Stockfish::Eval::NNUE {
       {
         // Only update current position accumulator to minimize work.
         StateInfo* states_to_update[2] = { pos.state(), nullptr };
-        update_accumulator_incremetal<Perspective, 2>(pos, oldest_st, states_to_update);
+        update_accumulator_incremental<Perspective, 2>(pos, oldest_st, states_to_update);
       }
       else
       {
@@ -656,7 +656,7 @@ namespace Stockfish::Eval::NNUE {
         StateInfo *states_to_update[3] =
           { next, next == pos.state() ? nullptr : pos.state(), nullptr };
 
-        update_accumulator_incremetal<Perspective, 3>(pos, oldest_st, states_to_update);
+        update_accumulator_incremental<Perspective, 3>(pos, oldest_st, states_to_update);
       }
       else
       {