Browse Source

Handle leading plus sign in same kind as minus.

pre-master-46
dwarning 7 years ago
committed by Holger Vogt
parent
commit
49a3af54de
  1. 4
      src/spicelib/parser/inpgtok.c

4
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;

Loading…
Cancel
Save