add missing casts
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2180 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
abc9423709
commit
c2ac02ff46
|
@ -3600,7 +3600,7 @@ void do_output(int *kbinput, size_t kbinput_len)
|
||||||
/* Change the wide character to its multibyte value. If it's
|
/* Change the wide character to its multibyte value. If it's
|
||||||
* invalid, go on to the next character. */
|
* invalid, go on to the next character. */
|
||||||
if (!ISSET(NO_UTF8)) {
|
if (!ISSET(NO_UTF8)) {
|
||||||
key_len = wctomb(key, kbinput[i]);
|
key_len = wctomb(key, (wchar_t)kbinput[i]);
|
||||||
|
|
||||||
if (key_len == -1)
|
if (key_len == -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -205,7 +205,7 @@ void get_buffer(WINDOW *win)
|
||||||
clean_key_buffer_len * sizeof(buffer));
|
clean_key_buffer_len * sizeof(buffer));
|
||||||
|
|
||||||
clean_key_buffer[clean_key_buffer_len - 1].key =
|
clean_key_buffer[clean_key_buffer_len - 1].key =
|
||||||
wide_key;
|
(int)wide_key;
|
||||||
clean_key_buffer[clean_key_buffer_len - 1].key_code =
|
clean_key_buffer[clean_key_buffer_len - 1].key_code =
|
||||||
key_buffer[i].key_code;
|
key_buffer[i].key_code;
|
||||||
}
|
}
|
||||||
|
@ -263,7 +263,7 @@ void unget_input(buffer *input, size_t input_len)
|
||||||
for (i = 0; i < input_len; i++) {
|
for (i = 0; i < input_len; i++) {
|
||||||
char key[MB_LEN_MAX];
|
char key[MB_LEN_MAX];
|
||||||
int key_len = input[i].key_code ? 1 :
|
int key_len = input[i].key_code ? 1 :
|
||||||
wctomb(key, input[i].key);
|
wctomb(key, (wchar_t)input[i].key);
|
||||||
|
|
||||||
if (key_len != -1) {
|
if (key_len != -1) {
|
||||||
clean_input_len++;
|
clean_input_len++;
|
||||||
|
|
Loading…
Reference in New Issue