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:
Andreas Mohr 2016-02-28 21:47:22 +00:00 committed by Andrew Borodin
parent a5ebb7d619
commit 1b8a5d2196

View File

@ -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;
}
}