提交 cde9139b 编写于 作者: B Bernard Xiong

[Finsh] Fix '0' token issue.

上级 075f7970
......@@ -521,8 +521,11 @@ static void token_proc_number(struct finsh_token* self)
}
else
{
/* Not a valid number */
token_prev_char(self);
/* made as 0 value */
self->value.int_value = 0;
self->current_token = finsh_token_type_value_int;
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册