From: David Lawrence Ramsey Date: Fri, 28 May 2004 21:02:32 +0000 (+0000) Subject: add missing cast to char X-Git-Tag: v1.3.3~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=570ea8969b6b022a242b718d6c8149e9f0b4aa8d;p=nano.git add missing cast to char git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1775 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 83795fd8..b1450cd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -207,6 +207,7 @@ CVS code - - Move the savetty() call down from just after initscr() to just after the terminal is properly set up, so that we can restore it easily after a resize. (DLR) + - Add missing cast to char when calling do_char(). (DLR) - nano.h: - Since REGEXP_COMPILED is only used in search.c, convert it from a flag to a static int there. (DLR) diff --git a/src/nano.c b/src/nano.c index 1362890e..b136b949 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3624,7 +3624,7 @@ int main(int argc, char *argv[]) if (ISSET(VIEW_MODE)) print_view_warning(); else - do_char(kbinput); + do_char((char)kbinput); } reset_cursor();