mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-30 00:04:49 -05:00
Change a temporary buffer from unsigned chars to chars, avoiding a pointer-cast
warning. [originally from svn r2215]
This commit is contained in:
parent
ad86746679
commit
563eef2870
@ -3251,12 +3251,12 @@ static void clipme(Terminal *term, pos top, pos bottom, int rect)
|
|||||||
|
|
||||||
if (DIRECT_FONT(uc)) {
|
if (DIRECT_FONT(uc)) {
|
||||||
if (c >= ' ' && c != 0x7F) {
|
if (c >= ' ' && c != 0x7F) {
|
||||||
unsigned char buf[4];
|
char buf[4];
|
||||||
WCHAR wbuf[4];
|
WCHAR wbuf[4];
|
||||||
int rv;
|
int rv;
|
||||||
if (is_dbcs_leadbyte(font_codepage, (BYTE) c)) {
|
if (is_dbcs_leadbyte(font_codepage, (BYTE) c)) {
|
||||||
buf[0] = c;
|
buf[0] = c;
|
||||||
buf[1] = (unsigned char) ldata[top.x + 1];
|
buf[1] = ldata[top.x + 1];
|
||||||
rv = mb_to_wc(font_codepage, 0, buf, 2, wbuf, 4);
|
rv = mb_to_wc(font_codepage, 0, buf, 2, wbuf, 4);
|
||||||
top.x++;
|
top.x++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user