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/textarea.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/textarea.c')
-rw-r--r-- | riscos/textarea.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/riscos/textarea.c b/riscos/textarea.c index 63a2356c0..49b31b704 100644 --- a/riscos/textarea.c +++ b/riscos/textarea.c @@ -20,6 +20,7 @@ * Single/Multi-line UTF-8 text area (implementation) */ +#include <inttypes.h> #include <stdbool.h> #include <stdint.h> #include <string.h> @@ -907,7 +908,7 @@ bool textarea_mouse_click(wimp_pointer *pointer) */ bool textarea_key_press(wimp_key *key) { - wchar_t c = (wchar_t)key->c; + uint32_t c = (uint32_t) key->c; wimp_key keypress; struct text_area *ta; char utf8[7]; |