Use bool(Bitboard b) instead of !!b (#1321)

The idiom !!b is confusing newcomers (e.g. Stefan needs explaining here https://groups.google.com/d/msg/fishcooking/vYqnsRI4brY/Gaf60QuACwAJ).

No functional change.
This commit is contained in:
Joost VandeVondele
2017-12-03 18:29:55 +01:00
committed by Marco Costalba
parent 28b6a457c2
commit 2acda1fde3
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ struct Entry {
}
int pawns_on_same_color_squares(Color c, Square s) const {
return pawnsOnSquares[c][!!(DarkSquares & s)];
return pawnsOnSquares[c][bool(DarkSquares & s)];
}
template<Color Us>