diff options
-rw-r--r-- | win32/winansi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/winansi.c b/win32/winansi.c index 591154378..b5111603c 100644 --- a/win32/winansi.c +++ b/win32/winansi.c | |||
@@ -1276,7 +1276,7 @@ static void maybeEatUpto2ndHalfUp(HANDLE h, DWORD *ph1) | |||
1276 | 1276 | ||
1277 | // got 2nd-half-up. eat the events up to this, combine the values | 1277 | // got 2nd-half-up. eat the events up to this, combine the values |
1278 | ReadConsoleInputW(h, r, i, &got); | 1278 | ReadConsoleInputW(h, r, i, &got); |
1279 | *ph1 = 0x10000 | ((*ph1 & ~0xD800) << 10) | (h2 & ~0xDC00); | 1279 | *ph1 = 0x10000 + (((*ph1 & ~0xD800) << 10) | (h2 & ~0xDC00)); |
1280 | return; | 1280 | return; |
1281 | } | 1281 | } |
1282 | } | 1282 | } |