mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
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:
committed by
Joost VandeVondele
parent
49ece9f791
commit
d6a5c2b085
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user