From 9c190218088c78967d9cb37cb2f3a8903133bc62 Mon Sep 17 00:00:00 2001 From: FireFather Date: Wed, 1 Jul 2020 18:21:07 +0200 Subject: [PATCH] update translation 1 line src\eval\nnue\features\half_kp.cpp 1 line src\movegen.h --- src/eval/nnue/features/half_kp.cpp | 2 +- src/movegen.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eval/nnue/features/half_kp.cpp b/src/eval/nnue/features/half_kp.cpp index 72156c82..cba2c9cd 100644 --- a/src/eval/nnue/features/half_kp.cpp +++ b/src/eval/nnue/features/half_kp.cpp @@ -35,7 +35,7 @@ inline void HalfKP::GetPieces( template void HalfKP::AppendActiveIndices( const Position& pos, Color perspective, IndexList* active) { - // コンパイラの警告を回避するため、配列サイズが小さい場合は何もしない + // do nothing if array size is small to avoid compiler warning if (RawFeatures::kMaxActiveDimensions < kMaxActiveDimensions) return; BonaPiece* pieces; diff --git a/src/movegen.h b/src/movegen.h index 838541f1..d5f82f16 100644 --- a/src/movegen.h +++ b/src/movegen.h @@ -68,7 +68,7 @@ struct MoveList { return std::find(begin(), end(), move) != end(); } - // iԖڂ̗vfԂ + // returns the i th element const ExtMove at(size_t i) const { assert(0 <= i && i < size()); return begin()[i]; } private: