fix some casts
This commit is contained in:
parent
805f60448a
commit
eb6e3e9827
|
|
@ -1,3 +1,9 @@
|
|||
2010-07-08 Robert Larice
|
||||
* src/xspice/ipc/ipc.c ,
|
||||
* src/xspice/mif/mif_inp2.c ,
|
||||
* src/xspice/mif/mifgetmod.c :
|
||||
fix some few casts.
|
||||
|
||||
2010-07-08 Robert Larice
|
||||
* src/tclspice.c ,
|
||||
* src/frontend/outitf.c ,
|
||||
|
|
|
|||
|
|
@ -974,7 +974,7 @@ ipc_send_event (
|
|||
}
|
||||
|
||||
/* Put the binary representation bytes in last */
|
||||
temp_ptr = ipc_val;
|
||||
temp_ptr = (char*) ipc_val;
|
||||
for(i = 0; i < len; i++)
|
||||
buff_ptr[i] = temp_ptr[i];
|
||||
buff_ptr += len;
|
||||
|
|
|
|||
|
|
@ -224,8 +224,8 @@ card *current ) /* the card we are to parse */
|
|||
}
|
||||
|
||||
/* create a new structure for this instance in ckt */
|
||||
mdfast = thismodel->INPmodfast;
|
||||
IFC(newInstance, (ckt, mdfast,(void **)fast, name))
|
||||
mdfast = (MIFmodel*) thismodel->INPmodfast;
|
||||
IFC(newInstance, (ckt, (GENmodel*)mdfast, (GENinstance **)fast, name))
|
||||
|
||||
|
||||
/* initialize the code model specific elements of the inst struct */
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ char *MIFgetMod(
|
|||
return(INPerror(error));
|
||||
|
||||
/* gtri modification: allocate and initialize MIF specific model struct items */
|
||||
mdfast = modtmp->INPmodfast;
|
||||
mdfast = (MIFmodel*) modtmp->INPmodfast;
|
||||
mdfast->num_param = DEVices[modtmp->INPmodType]->DEVpublic.num_param;
|
||||
mdfast->param = (void *) tmalloc(mdfast->num_param * sizeof(void *));
|
||||
for(i = 0; i < mdfast->num_param; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue