forked from Imagelibrary/rtems
shell/shell.c: Fix an implicit type cast
With some compiler warnings enabled, the implicit cast may trigger a compiler warning. The explicit cast avoids this.
This commit is contained in:
committed by
Sebastian Huber
parent
0a761a58c9
commit
2361b2c8cb
@@ -620,7 +620,9 @@ static int rtems_shell_line_editor(
|
|||||||
case 21: /* Control-U */
|
case 21: /* Control-U */
|
||||||
if (col > 0)
|
if (col > 0)
|
||||||
{
|
{
|
||||||
int clen = strlen (line);
|
/* strlen() returns size_t but fprintf("%*...") below requires
|
||||||
|
* int! */
|
||||||
|
int clen = (int) strlen (line);
|
||||||
int bs;
|
int bs;
|
||||||
|
|
||||||
strcpy (line, line + col);
|
strcpy (line, line + col);
|
||||||
|
|||||||
Reference in New Issue
Block a user