X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=af2b247c0990482f76a7e106b00cf42a00385b89;hb=7c9ee0544821f7981792be03e90ba15e9a8aeada;hp=593398e52c26d793bfa0a06101ddd9653533e4e3;hpb=6363ad84c9a0b600d6219a53b299945ea72590ac;p=xboard.git diff --git a/backend.c b/backend.c index 593398e..af2b247 100644 --- a/backend.c +++ b/backend.c @@ -6192,12 +6192,12 @@ UpdateExcludeHeader (int fromY, int fromX, int toY, int toX, char promoChar, cha } static int -ExcludeOneMove (int fromY, int fromX, int toY, int toX, signed char promoChar, char state) +ExcludeOneMove (int fromY, int fromX, int toY, int toX, char promoChar, char state) { // include or exclude the given move, as specified by state ('+' or '-'), or toggle char buf[MSG_SIZ]; int j, k; ChessMove moveType; - if(promoChar == -1) { // kludge to indicate best move + if((signed char)promoChar == -1) { // kludge to indicate best move if(!ParseOneMove(lastPV[0], currentMove, &moveType, &fromX, &fromY, &toX, &toY, &promoChar)) // get current best move from last PV return 1; // if unparsable, abort }