Fix some warnings under +w1 HP-UX compile

This is the world's fussiest compiler with +w1

Warnings reported by Richard Lloyd.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-04-11 17:03:03 +01:00
parent e81108a855
commit a4a0ffce71
10 changed files with 16 additions and 17 deletions

View File

@@ -961,7 +961,7 @@ namespace {
qsq = relative_square(Us, make_square(square_file(s), RANK_8));
d = square_distance(s, qsq)
- square_distance(theirKingSq, qsq)
+ (Us != pos.side_to_move());
+ int(Us != pos.side_to_move());
if (d < 0)
{