diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index ed5e615c..1c8020b6 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -649,8 +649,8 @@ void DOS_Shell::CMD_DIR(char * args) { // if (optW) { if (is_dir) { - const size_t namelen = strlen(name); - WriteOut("[%s]%*s", name, (14 - namelen), ""); + const int length = static_cast(strlen(name)); + WriteOut("[%s]%*s", name, (14 - length), ""); } else { WriteOut("%-16s", name); }