diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-16 09:37:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-16 09:37:22 +0000 |
commit | b15a6af3d29ad844bdd44eb6181d069958afab5b (patch) | |
tree | 7c59b84724c59a3f8df76902841f19c36837f5d6 /riscos/window.c | |
parent | baca6796eb96fac3cf79400f9cdb588b49f78930 (diff) | |
download | netsurf-b15a6af3d29ad844bdd44eb6181d069958afab5b.tar.gz netsurf-b15a6af3d29ad844bdd44eb6181d069958afab5b.tar.bz2 |
s/wchar_t/uint32_t/g
We always assumed that the keycode type was 32bits wide, anyway. wchar_t isn't guaranteed to be that big, so isn't remotely portable.
svn path=/trunk/netsurf/; revision=4165
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) { |