mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
src/editor/editwidget.c: Cleanup some compiler warnings
editwidget.c:808:12: warning: implicit conversion changes signedness: 'gboolean' (aka 'int') to 'cb_ret_t' [-Wsign-conversion] return ret; ~~~~~~ ^~~ editwidget.c:857:71: warning: implicit conversion changes signedness: 'unsigned char' to 'char' [-Wsign-conversion] char_for_insertion = convert_from_8bit_to_utf_c2 ((unsigned char) x_key); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
a5ebb7d619
commit
1b8a5d2196
@ -711,7 +711,7 @@ static cb_ret_t
|
||||
edit_dialog_command_execute (WDialog * h, long command)
|
||||
{
|
||||
Widget *wh = WIDGET (h);
|
||||
gboolean ret = MSG_HANDLED;
|
||||
cb_ret_t ret = MSG_HANDLED;
|
||||
|
||||
switch (command)
|
||||
{
|
||||
@ -854,7 +854,7 @@ edit_translate_key (WEdit * edit, long x_key, int *cmd, int *ch)
|
||||
if (!edit->utf8)
|
||||
char_for_insertion = c;
|
||||
else
|
||||
char_for_insertion = convert_from_8bit_to_utf_c2 ((unsigned char) x_key);
|
||||
char_for_insertion = convert_from_8bit_to_utf_c2 ((char) x_key);
|
||||
goto fin;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user