summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-03-24 16:54:00 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-03-24 16:54:00 +0800
commitd552f049050a69f6fbb9593489797e941059a97a (patch)
treeb87b7656d54c5796a052c37108c67b49252d3d5e /mbbsd
parent2bc657336cf51255ea6d0bf47c1792347d4bf8d3 (diff)
downloadpttbbs-d552f049050a69f6fbb9593489797e941059a97a.tar
pttbbs-d552f049050a69f6fbb9593489797e941059a97a.tar.gz
pttbbs-d552f049050a69f6fbb9593489797e941059a97a.tar.bz2
pttbbs-d552f049050a69f6fbb9593489797e941059a97a.tar.lz
pttbbs-d552f049050a69f6fbb9593489797e941059a97a.tar.xz
pttbbs-d552f049050a69f6fbb9593489797e941059a97a.tar.zst
pttbbs-d552f049050a69f6fbb9593489797e941059a97a.zip
Fix warning: array subscript has type 'char'
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/chess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/chess.c b/mbbsd/chess.c
index 264b8553..c62b8b95 100644
--- a/mbbsd/chess.c
+++ b/mbbsd/chess.c
@@ -1434,8 +1434,8 @@ ChessPhotoInitial(ChessInfo* info)
info->constants->turn_str[(int) info->myturn ^ 1]);
strcpy(PHOTO(7), " ¢ä.¢á ");
sprintf(PHOTO(8), " %s%2.2s´Ñ" ANSI_RESET,
- info->constants->turn_color[info->myturn],
- info->constants->turn_str[info->myturn]);
+ info->constants->turn_color[(int) info->myturn],
+ info->constants->turn_str[(int) info->myturn]);
fp = NULL;
if(getuser(info->user1.userid, &xuser)) {;