diff --git a/ChangeLog b/ChangeLog
index 83795fd8a558d48bacafa72277676e2a1b3d833c..b1450cd1b8a14bf8996ea40c484d283b33a832a6 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 1362890e69a5a0f725d7a264dbcf9c733df6b0b2..b136b9491b5cc174ffd66b86899cbfb9000d255f 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();