diff options
author | David Robillard <d@drobilla.net> | 2020-12-11 18:05:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-11 18:05:24 +0100 |
commit | 2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316 (patch) | |
tree | 5829b072b014ce30b8e882146180961b0a6a51d7 | |
parent | 3d864fcd0c6079a97a7802a0238060ef4d4c9541 (diff) | |
download | pugl-2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316.tar.gz pugl-2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316.tar.bz2 pugl-2f48c3e6b77c6cfe6afba8bb6d5448692b6b3316.zip |
Fix a conversion warning with MinGW
-rw-r--r-- | src/win.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |