fix type and usage of some function pointers
This commit is contained in:
parent
a19f5dc9ac
commit
460f7a6485
|
|
@ -1,3 +1,7 @@
|
|||
2010-07-11 Robert Larice
|
||||
* src/spicelib/analysis/cktsens.c :
|
||||
fix type and usage of some function pointers
|
||||
|
||||
2010-07-11 Robert Larice
|
||||
* src/spicelib/devices/dev.c :
|
||||
fix some function pointer casts
|
||||
|
|
|
|||
|
|
@ -719,12 +719,12 @@ sens_temp(sgen *sg, CKTcircuit *ckt)
|
|||
int
|
||||
sens_getp(sgen *sg, CKTcircuit *ckt, IFvalue *val)
|
||||
{
|
||||
int (*fn)( );
|
||||
int pid;
|
||||
|
||||
error = 0;
|
||||
|
||||
if (sg->is_instparam) {
|
||||
int (*fn) (CKTcircuit*, GENinstance*, int, IFvalue*, IFvalue*);
|
||||
fn = DEVices[sg->dev]->DEVask;
|
||||
pid = DEVices[sg->dev]->DEVpublic.instanceParms[sg->param].id;
|
||||
if (fn)
|
||||
|
|
@ -732,10 +732,11 @@ sens_getp(sgen *sg, CKTcircuit *ckt, IFvalue *val)
|
|||
else
|
||||
return 1;
|
||||
} else {
|
||||
int (*fn) (CKTcircuit*, GENmodel*, int, IFvalue*);
|
||||
fn = DEVices[sg->dev]->DEVmodAsk;
|
||||
pid = DEVices[sg->dev]->DEVpublic.modelParms[sg->param].id;
|
||||
if (fn)
|
||||
error = (*fn)(ckt, sg->model, pid, val, NULL);
|
||||
error = (*fn)(ckt, sg->model, pid, val);
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue