diff options
| author | Meco Man <[email protected]> | 2022-05-17 02:19:53 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-05-19 09:43:20 +0800 |
| commit | 08737c2a2612b7304e4c36afd7bddf1909fec8a6 (patch) | |
| tree | 68c878392fde7fe3a2606df2438e754745d7cb17 /components | |
| parent | 569facb12d63ab6de25531f1e5de70dcecba377b (diff) | |
[simulator] 消除windows下的警告
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/shell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 1fc2bf7bcd..c06b688ed3 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -529,7 +529,7 @@ void finsh_thread_entry(void *parameter) /* copy the history command */ rt_memcpy(shell->line, &shell->cmd_history[shell->current_history][0], FINSH_CMD_SIZE); - shell->line_curpos = shell->line_position = strlen(shell->line); + shell->line_curpos = shell->line_position = (rt_uint16_t)strlen(shell->line); shell_handle_history(shell); #endif continue; @@ -551,7 +551,7 @@ void finsh_thread_entry(void *parameter) rt_memcpy(shell->line, &shell->cmd_history[shell->current_history][0], FINSH_CMD_SIZE); - shell->line_curpos = shell->line_position = strlen(shell->line); + shell->line_curpos = shell->line_position = (rt_uint16_t)strlen(shell->line); shell_handle_history(shell); #endif continue; @@ -591,7 +591,7 @@ void finsh_thread_entry(void *parameter) /* auto complete */ shell_auto_complete(&shell->line[0]); /* re-calculate position */ - shell->line_curpos = shell->line_position = strlen(shell->line); + shell->line_curpos = shell->line_position = (rt_uint16_t)strlen(shell->line); continue; } |
