summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-24 21:24:09 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-24 21:24:09 +0800
commit89891cc0a2406c87630f04063a14c10fb9c6a110 (patch)
tree2da6a5212a43fe4e3095a7481939588550a0f3be /mbbsd
parent7234a7e820487eff9f2abf562ff7cacbc6bd31a2 (diff)
downloadpttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.tar
pttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.tar.gz
pttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.tar.bz2
pttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.tar.lz
pttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.tar.xz
pttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.tar.zst
pttbbs-89891cc0a2406c87630f04063a14c10fb9c6a110.zip
fix warning
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1430 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/io.c4
-rw-r--r--mbbsd/kaede.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 1d1677a1..56bb4a78 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -408,8 +408,8 @@ strip_ansi(char *buf, char *str, int mode)
/* E0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* F0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
-#define isEscapeParam(X) (EscapeFlag[(X)] & 1)
-#define isEscapeCommand(X) (EscapeFlag[(X)] & 2)
+#define isEscapeParam(X) (EscapeFlag[(int)(X)] & 1)
+#define isEscapeCommand(X) (EscapeFlag[(int)(X)] & 2)
for(; *str; ++str)
if( *str != '\033' ){
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 42730c1f..a5008b10 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -48,8 +48,8 @@ Ptt_prints(char *str, int mode)
w += snprintf(&strbuf[w], sizeof(strbuf) - w,
"%d", cuser.money);
break;
+ /* It's saver not to send these undefined escape string.
default:
- /* It's saver not to send these undefined escape string.
strbuf[w++] = '\033';
strbuf[w++] = '*';
strbuf[w++] = str[r];