diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-24 21:24:09 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-24 21:24:09 +0800 |
commit | 89891cc0a2406c87630f04063a14c10fb9c6a110 (patch) | |
tree | 2da6a5212a43fe4e3095a7481939588550a0f3be /mbbsd | |
parent | 7234a7e820487eff9f2abf562ff7cacbc6bd31a2 (diff) | |
download | pttbbs-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.c | 4 | ||||
-rw-r--r-- | mbbsd/kaede.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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]; |