From: simon Date: Wed, 18 Dec 2002 11:51:09 +0000 (+0000) Subject: Placate a trivial compiler warning. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/7b966c9b996d5797596942b8052e4011b77badc8 Placate a trivial compiler warning. git-svn-id: svn://svn.tartarus.org/sgt/putty@2347 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/terminal.c b/terminal.c index 59500725..1446fa21 100644 --- a/terminal.c +++ b/terminal.c @@ -3309,7 +3309,7 @@ static void clipme(Terminal *term, pos top, pos bottom, int rect) int rv; if (is_dbcs_leadbyte(font_codepage, (BYTE) c)) { buf[0] = c; - buf[1] = ldata[top.x + 1]; + buf[1] = (char) (0xFF & ldata[top.x + 1]); rv = mb_to_wc(font_codepage, 0, buf, 2, wbuf, 4); top.x++; } else {