60 Star 428 Fork 192

Nrush / nr_micro_shell

 / 详情

判断BUG建议

待办的
创建于  
2023-06-20 09:27

在函数void nr_ansi_common_char_slover(ansi_st *ansi,char x)

的判断过程中:if (ansi->p< ansi->counter)
其中ansi->p 为short类型, ansi->counter为uint16_t 类型;
BUG:出现过一次 ansi->p=0xFFFF ,ansi->counter=0;但是判断通过

建议增加 强制转换后再判断:if ((uint16_t)(ansi->p) < ansi->counter)

评论 (0)

MiKi 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C
1
https://gitee.com/nrush/nr_micro_shell.git
git@gitee.com:nrush/nr_micro_shell.git
nrush
nr_micro_shell
nr_micro_shell

搜索帮助