correct parsing of integer model parameter in vectors too

This commit is contained in:
dwarning 2010-04-28 21:18:10 +00:00
parent 1ba2d635c8
commit 7cd4839d1b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ IFvalue *INPgetValue(void *ckt, char **line, int type, INPtables * tab)
ilist =
(int *) REALLOC((char *) ilist,
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);
}
temp.v.vec.iVec = ilist;