aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/win.c b/src/win.c
index ff296c2..44033fc 100644
--- a/src/win.c
+++ b/src/win.c
@@ -436,7 +436,8 @@ initKeyEvent(PuglEventKey* event,
static void
initCharEvent(PuglEvent* event, PuglView* view, WPARAM wParam, LPARAM lParam)
{
- const wchar_t utf16[2] = { wParam & 0xFFFF, (wParam >> 16) & 0xFFFF };
+ const wchar_t utf16[2] = {wParam & 0xFFFF,
+ (wchar_t)((wParam >> 16) & 0xFFFF)};
initKeyEvent(&event->key, view, true, wParam, lParam);
event->type = PUGL_TEXT;