diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-25 13:33:25 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-25 13:33:25 +0800 |
commit | f1d0503c4fd4f103c10c6b609e7e078a586bf6ab (patch) | |
tree | 9a546b99209a6822bb648c757adc75972f7f1b59 /mbbsd/edit.c | |
parent | bbb6b692de2cc853deff9702aa95fe323beb2fd8 (diff) | |
download | pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.gz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.bz2 pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.lz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.xz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.zst pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.zip |
eliminate compiler warnings (mostly signed/unsigned)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3082 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index da65ca5b..f5c94154 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -2087,7 +2087,7 @@ display_textline_internal(textline_t *p, int i, int min, int max) (*output)(""); } else { int newpnt = curr_buf->edit_margin; - unsigned char *pdata = &p->data[0] + curr_buf->edit_margin; + unsigned char *pdata = (unsigned char*)(&p->data[0] + curr_buf->edit_margin); if(mbcs_mode) newpnt = fix_cursor(p->data, newpnt, FC_LEFT); if(newpnt == curr_buf->edit_margin-1) @@ -3231,7 +3231,7 @@ vedit(char *fpath, int saveheader, int *islocal) int w = 1; if(mbcs_mode) - w = mchar_len(curr_buf->currline->data + curr_buf->currpnt); + w = mchar_len((unsigned char*)(curr_buf->currline->data + curr_buf->currpnt)); for(; w > 0; w --) delete_char(); |