projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
45bea0f
)
Fix warnings about character index
author
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 17 Apr 2012 13:44:15 +0000 (15:44 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 17 Apr 2012 13:44:15 +0000 (15:44 +0200)
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
a8e342d
..
593398e
100644
(file)
--- 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<BOARD_RGHT; i++) {
if(board[BOARD_HEIGHT-1][i] == BlackKing) blackKingFile = i;