Fix bare King adjudication
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 22 Jul 2016 07:12:36 +0000 (09:12 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 22 Jul 2016 07:12:36 +0000 (09:12 +0200)
commita70f567b63dafae38af86be07c0cc3112a013cca
treec49442a29faf6e23d6b38e96dc8cd8ccd97cbf69
parent674a21be8b9a930d910d4345db5b999e76c58b70
Fix bare King adjudication

The increase of the number of piece types to 66 gave the BlackKing code
131, wich is > 127, so that using a signed char for it makes it < 0.
This cause the black King in the adjudication code to be seen as a white
piece. When black then checkmates with 2 pieces, only 1 piece is seen
(Q), and then assumed to be a bare King! Now the piece value is passed
through an (int) to prevent this.
backend.c