diff --git a/litex/soc/software/bios/readline.c b/litex/soc/software/bios/readline.c index f507f1a65..a255ebfaa 100644 --- a/litex/soc/software/bios/readline.c +++ b/litex/soc/software/bios/readline.c @@ -190,7 +190,7 @@ int readline(char *buf, int len) unsigned int eol_num = 0; unsigned int wlen; int insert = 1; - char ichar; + unsigned char ichar; #ifndef TERM_NO_COMPLETE char tmp;