aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-11 18:05:24 +0100
committerDavid Robillard <d@drobilla.net>2020-12-11 18:05:24 +0100
commit2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316 (patch)
tree5829b072b014ce30b8e882146180961b0a6a51d7
parent3d864fcd0c6079a97a7802a0238060ef4d4c9541 (diff)
downloadpugl-2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316.tar.gz
pugl-2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316.tar.bz2
pugl-2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316.zip
Fix a conversion warning with MinGW
-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;