mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
Handle leading plus sign in same kind as minus.
This commit is contained in:
@@ -285,9 +285,7 @@ INPgetUTok(char **line, char **token, int gobble)
|
|||||||
break;
|
break;
|
||||||
/* This is not complex enough to catch all errors, but it will
|
/* This is not complex enough to catch all errors, but it will
|
||||||
get the "good" parses */
|
get the "good" parses */
|
||||||
if (*point == '+' && (signstate == 1 || signstate == 3))
|
if (*point == '+' || *point == '-') {
|
||||||
break;
|
|
||||||
if (*point == '-') {
|
|
||||||
if (signstate == 1 || signstate == 3)
|
if (signstate == 1 || signstate == 3)
|
||||||
break;
|
break;
|
||||||
signstate += 1;
|
signstate += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user