diff --git a/src/spicelib/parser/inpgtok.c b/src/spicelib/parser/inpgtok.c index 385c287fd..58ece2fc1 100644 --- a/src/spicelib/parser/inpgtok.c +++ b/src/spicelib/parser/inpgtok.c @@ -285,9 +285,7 @@ INPgetUTok(char **line, char **token, int gobble) break; /* This is not complex enough to catch all errors, but it will get the "good" parses */ - if (*point == '+' && (signstate == 1 || signstate == 3)) - break; - if (*point == '-') { + if (*point == '+' || *point == '-') { if (signstate == 1 || signstate == 3) break; signstate += 1;