From: H.G. Muller Date: Tue, 17 Apr 2012 13:44:15 +0000 (+0200) Subject: Fix warnings about character index X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6363ad84c9a0b600d6219a53b299945ea72590ac;p=xboard.git Fix warnings about character index --- diff --git a/backend.c b/backend.c index a8e342d..593398e 100644 --- a/backend.c +++ b/backend.c @@ -16870,7 +16870,7 @@ ParseFEN (Board board, int *blackPlaysFirst, char *fen) (gameInfo.variant == VariantFischeRandom || gameInfo.variant == VariantCapaRandom) && ( *p >= 'a' && *p < 'a' + gameInfo.boardWidth) || ( *p >= 'A' && *p < 'A' + gameInfo.boardWidth) ) { - char c = *p++; int whiteKingFile=NoRights, blackKingFile=NoRights; + int c = *p++, whiteKingFile=NoRights, blackKingFile=NoRights; for(i=BOARD_LEFT; i