Browse Source

fix some casts

pre-master-46
rlar 16 years ago
parent
commit
eb6e3e9827
  1. 6
      ChangeLog
  2. 2
      src/xspice/ipc/ipc.c
  3. 4
      src/xspice/mif/mif_inp2.c
  4. 2
      src/xspice/mif/mifgetmod.c

6
ChangeLog

@ -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 ,

2
src/xspice/ipc/ipc.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;

4
src/xspice/mif/mif_inp2.c

@ -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 */

2
src/xspice/mif/mifgetmod.c

@ -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…
Cancel
Save