inpcom.c, inp_fix_param_values(), bug fix, #295 .model fails when a literal numerical parameter value starts with a '+'

This commit is contained in:
rlar 2014-11-10 21:10:30 +01:00
parent 5e76305ffa
commit bd441171a7
1 changed files with 2 additions and 2 deletions

View File

@ -3328,8 +3328,8 @@ inp_fix_param_values(struct line *c)
*beg_of_str == '{' ||
*beg_of_str == '.' ||
*beg_of_str == '"' ||
(*beg_of_str == '-' && isdigit(beg_of_str[1])) ||
(*beg_of_str == '-' && beg_of_str[1] == '.' && isdigit(beg_of_str[2])) ||
((*beg_of_str == '-' || *beg_of_str == '+') && isdigit(beg_of_str[1])) ||
((*beg_of_str == '-' || *beg_of_str == '+') && beg_of_str[1] == '.' && isdigit(beg_of_str[2])) ||
ciprefix("true", beg_of_str) ||
ciprefix("false", beg_of_str))
{