inline int edge_distance(File f) { return std::min(f, File(FILE_H - f)); }
-/// attacks_bb(Square) returns the pseudo attacks of the give piece type
+/// attacks_bb(Square) returns the pseudo attacks of the given piece type
/// assuming an empty board.
template<PieceType Pt>
#elif defined(_MSC_VER)
- return (int)_mm_popcnt_u64(b);
+ return int(_mm_popcnt_u64(b));
#else // Assumed gcc or compatible compiler