memory allocation struct pwldata->vals
This commit is contained in:
parent
3c094b5f1f
commit
514c8e8573
|
|
@ -1,3 +1,7 @@
|
|||
2009-11-21 Holger Vogt
|
||||
* spicelib/parser/inptree.c: memory allocation of struct pwldata->vals
|
||||
failed in MS Visual Studio 2008, changed.
|
||||
|
||||
2009-11-20 Holger Vogt
|
||||
* postsc.c: some cosmetics to postscript plot, hcopypstxcolor for
|
||||
setting text color
|
||||
|
|
|
|||
|
|
@ -797,8 +797,8 @@ static INPparseNode *prepare_PTF_PWL(INPparseNode *p)
|
|||
return (NULL);
|
||||
}
|
||||
|
||||
data = (struct pwldata *)
|
||||
MALLOC(sizeof(struct pwldata) + i*sizeof(double));
|
||||
data = (struct pwldata *) MALLOC(sizeof(struct pwldata));
|
||||
data->vals = (double*) MALLOC(i*sizeof(double));
|
||||
|
||||
data->n = i;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue