From f1d0503c4fd4f103c10c6b609e7e078a586bf6ab Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 25 Aug 2005 05:33:25 +0000 Subject: eliminate compiler warnings (mostly signed/unsigned) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3082 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/edit.c') 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(); -- cgit v1.2.3