diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-03 14:52:29 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-03 14:52:29 +0000 |
commit | 8eda5e98275b8f2efaeb97559fb4e9d82d492149 (patch) | |
tree | 9d6e8ec0a5e59243ce4d2b60d821b3759e4ac5ba /desktop/textinput.c | |
parent | 3986abd20bd6d623b609e8b3c83436ae5f0fb8b8 (diff) | |
download | netsurf-8eda5e98275b8f2efaeb97559fb4e9d82d492149.tar.gz netsurf-8eda5e98275b8f2efaeb97559fb4e9d82d492149.tar.bz2 |
Squash two warnings.
svn path=/trunk/netsurf/; revision=3878
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r-- | desktop/textinput.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index 2a7f4d553..07db0d639 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -1028,7 +1028,8 @@ bool browser_window_input_callback(struct browser_window *bw, case KEY_WORD_LEFT: { size_t nchars; /* Text box */ - if (word_left(input->gadget->value, &form_offset, &nchars)) { + if (word_left(input->gadget->value, + (size_t*)&form_offset, &nchars)) { /* Gadget */ while (box_offset > 0 && nchars-- > 0) box_offset = utf8_prev(text_box->text, box_offset); @@ -1043,7 +1044,7 @@ bool browser_window_input_callback(struct browser_window *bw, size_t nchars; /* Text box */ if (word_right(input->gadget->value, input->gadget->length, - &form_offset, &nchars)) { + (size_t*)&form_offset, &nchars)) { /* Gadget */ const char *text = text_box->text; unsigned len = text_box->length; |