diff options
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/riscos/window.c b/riscos/window.c index a50e7b4c4..0ae8aa077 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -27,6 +27,7 @@ #include <assert.h> #include <ctype.h> +#include <inttypes.h> #include <math.h> #include <stdio.h> #include <stdbool.h> @@ -2288,7 +2289,7 @@ bool ro_gui_window_keypress(wimp_key *key) os_error *error; wimp_pointer pointer; float scale; - wchar_t c = (wchar_t)key->c; + uint32_t c = (uint32_t) key->c; /* Find gui window */ if ((g = ro_gui_window_lookup(key->w)) != NULL) { @@ -2367,7 +2368,7 @@ bool ro_gui_window_keypress(wimp_key *key) /* Reset c to incoming character / key code * as we may have corrupted it above */ - c = (wchar_t)key->c; + c = (uint32_t) key->c; } switch (c) { |