Browse Source

correct parsing of integer model parameter in vectors too

pre-master-46
dwarning 16 years ago
parent
commit
7cd4839d1b
  1. 2
      src/spicelib/parser/inpgval.c

2
src/spicelib/parser/inpgval.c

@ -53,7 +53,7 @@ IFvalue *INPgetValue(void *ckt, char **line, int type, INPtables * tab)
ilist = ilist =
(int *) REALLOC((char *) ilist, (int *) REALLOC((char *) ilist,
temp.v.numValue * sizeof(int)); temp.v.numValue * sizeof(int));
*(ilist + temp.v.numValue - 1) = tmp;
*(ilist + temp.v.numValue - 1) = (int) floor(0.5 + tmp);
tmp = INPevaluate(line, &error, 1); tmp = INPevaluate(line, &error, 1);
} }
temp.v.vec.iVec = ilist; temp.v.vec.iVec = ilist;

Loading…
Cancel
Save