From b15a6af3d29ad844bdd44eb6181d069958afab5b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 May 2008 09:37:22 +0000 Subject: 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 --- riscos/textarea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'riscos/textarea.c') 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 #include #include #include @@ -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]; -- cgit v1.2.3