From 7b966c9b996d5797596942b8052e4011b77badc8 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 18 Dec 2002 11:51:09 +0000 Subject: [PATCH] Placate a trivial compiler warning. git-svn-id: svn://svn.tartarus.org/sgt/putty@2347 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.11.0