changed ancient double vector declaration in pwldata

This commit is contained in:
dwarning 2009-11-17 19:27:43 +00:00
parent 06dd0263c0
commit a0667438f1
2 changed files with 3 additions and 3 deletions

View File

@ -778,7 +778,7 @@ static INPparseNode *mkbnode(int opnum, INPparseNode * arg1,
static INPparseNode *prepare_PTF_PWL(INPparseNode *p)
{
INPparseNode *w;
struct pwldata { int n; double vals[0]; } *data;
struct pwldata { int n; double *vals; } *data;
int i;
if (p->funcnum != PTF_PWL) {

View File

@ -247,7 +247,7 @@ PTuminus(double arg)
double
PTpwl(double arg, void *data)
{
struct pwldata { int n; double vals[0]; } *thing = data;
struct pwldata { int n; double *vals; } *thing = data;
double y;
@ -272,7 +272,7 @@ PTpwl(double arg, void *data)
double
PTpwl_derivative(double arg, void *data)
{
struct pwldata { int n; double vals[0]; } *thing = data;
struct pwldata { int n; double *vals; } *thing = data;
double y;