[Finsh] Fix '0' token issue.
This commit is contained in:
parent
075f79708a
commit
cde9139bc5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue