Small formatting improvements

Changes some C style casts to C++ style, and fixes some incorrect comments and variable names.

closes #4845

No functional change
This commit is contained in:
cj5716
2023-10-24 07:43:49 +08:00
committed by Joost VandeVondele
parent 49ece9f791
commit d6a5c2b085
5 changed files with 16 additions and 16 deletions

View File

@@ -298,7 +298,7 @@ inline Square lsb(Bitboard b) {
unsigned long idx;
_BitScanForward64(&idx, b);
return (Square) idx;
return Square(idx);
#else // MSVC, WIN32
unsigned long idx;
@@ -332,7 +332,7 @@ inline Square msb(Bitboard b) {
unsigned long idx;
_BitScanReverse64(&idx, b);
return (Square) idx;
return Square(idx);
#else // MSVC, WIN32