diff --git a/src/spicelib/parser/ChangeLog b/src/spicelib/parser/ChangeLog index a95f19d47..2a81fff41 100644 --- a/src/spicelib/parser/ChangeLog +++ b/src/spicelib/parser/ChangeLog @@ -1,3 +1,8 @@ +2000-10-12 Arno W. Peters + + * inpeval.c: Bugfix for subcircuits contributed by Michael + Widlok. + 2000-09-09 Arno W. Peters * inp2dot.c: Removed unused static functions dot_ic and diff --git a/src/spicelib/parser/inpeval.c b/src/spicelib/parser/inpeval.c index 2c055719e..029487830 100644 --- a/src/spicelib/parser/inpeval.c +++ b/src/spicelib/parser/inpeval.c @@ -24,9 +24,11 @@ double INPevaluate(char **line, int *error, int gobble) /* setup */ tmpline = *line; if (gobble) { - *error = INPgetUTok(line, &token, 1); - if (*error) - return ((double) 0.0); + /* MW. INPgetUTok should be called with gobble=0 or it make + * errors in v(1,2) exp */ + *error = INPgetUTok(line, &token, 0); + if (*error) + return ((double) 0.0); } else { token = *line; *error = 0;