diff --git a/ChangeLog b/ChangeLog index b8a89922e..82c0fbf0d 100644 --- a/ChangeLog +++ b/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 , diff --git a/src/xspice/ipc/ipc.c b/src/xspice/ipc/ipc.c index 81de2aeb3..a9a7897db 100755 --- a/src/xspice/ipc/ipc.c +++ b/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; diff --git a/src/xspice/mif/mif_inp2.c b/src/xspice/mif/mif_inp2.c index 3648e0105..c7fe6b4e1 100755 --- a/src/xspice/mif/mif_inp2.c +++ b/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 */ diff --git a/src/xspice/mif/mifgetmod.c b/src/xspice/mif/mifgetmod.c index e90bfb066..66efa691f 100755 --- a/src/xspice/mif/mifgetmod.c +++ b/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++) {