diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-03 15:10:16 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-03 15:10:16 +0000 |
commit | f5b638b8de92da4930040a40459fa9e5335ef65d (patch) | |
tree | 5855c0ba92e3172617c3de5d018e7837adec51a6 /desktop/textinput.c | |
parent | 8eda5e98275b8f2efaeb97559fb4e9d82d492149 (diff) | |
download | netsurf-f5b638b8de92da4930040a40459fa9e5335ef65d.tar.gz netsurf-f5b638b8de92da4930040a40459fa9e5335ef65d.tar.bz2 |
Squash warnings differently.
svn path=/trunk/netsurf/; revision=3879
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r-- | desktop/textinput.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index 07db0d639..0aa7b29f7 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -814,7 +814,7 @@ bool browser_window_input_callback(struct browser_window *bw, struct box *input = (struct box *)p; struct box *text_box = input->children->children; unsigned int box_offset = input->gadget->caret_box_offset; - unsigned int form_offset = input->gadget->caret_form_offset; + size_t form_offset = input->gadget->caret_form_offset; int pixel_offset = input->gadget->caret_pixel_offset; int box_x, box_y; struct form* form = input->gadget->form; @@ -1028,8 +1028,7 @@ bool browser_window_input_callback(struct browser_window *bw, case KEY_WORD_LEFT: { size_t nchars; /* Text box */ - if (word_left(input->gadget->value, - (size_t*)&form_offset, &nchars)) { + if (word_left(input->gadget->value, &form_offset, &nchars)) { /* Gadget */ while (box_offset > 0 && nchars-- > 0) box_offset = utf8_prev(text_box->text, box_offset); @@ -1044,7 +1043,7 @@ bool browser_window_input_callback(struct browser_window *bw, size_t nchars; /* Text box */ if (word_right(input->gadget->value, input->gadget->length, - (size_t*)&form_offset, &nchars)) { + &form_offset, &nchars)) { /* Gadget */ const char *text = text_box->text; unsigned len = text_box->length; |