Correct bitwise operation

This commit is contained in:
dwarning 2010-09-18 15:45:19 +00:00
parent 2d7437a45a
commit 883eba85be
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ ISRCaccept(CKTcircuit *ckt, GENmodel *inModel)
for (here = model->ISRCinstances; here != NULL ;
here=here->ISRCnextInstance) {
if(~ckt->CKTmode & (MODETRAN | MODETRANOP)) {
if(!(ckt->CKTmode & (MODETRAN | MODETRANOP))) {
/* not transient, so shouldn't be here */
return(OK);
} else {

View File

@ -30,7 +30,7 @@ VSRCaccept(CKTcircuit *ckt, GENmodel *inModel)
for (here = model->VSRCinstances; here != NULL ;
here=here->VSRCnextInstance) {
if(~ckt->CKTmode & (MODETRAN | MODETRANOP)) {
if(!(ckt->CKTmode & (MODETRAN | MODETRANOP))) {
/* not transient, so shouldn't be here */
return(OK);
} else {