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: