Correct bitwise operation
This commit is contained in:
parent
8d68684174
commit
461d229da7
|
|
@ -25,7 +25,7 @@ ISRCaccept(CKTcircuit *ckt, GENmodel *inModel)
|
||||||
for (here = model->ISRCinstances; here != NULL ;
|
for (here = model->ISRCinstances; here != NULL ;
|
||||||
here=here->ISRCnextInstance) {
|
here=here->ISRCnextInstance) {
|
||||||
|
|
||||||
if(!ckt->CKTmode & (MODETRAN | MODETRANOP)) {
|
if(~ckt->CKTmode & (MODETRAN | MODETRANOP)) {
|
||||||
/* not transient, so shouldn't be here */
|
/* not transient, so shouldn't be here */
|
||||||
return(OK);
|
return(OK);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ VSRCaccept(CKTcircuit *ckt, GENmodel *inModel)
|
||||||
for (here = model->VSRCinstances; here != NULL ;
|
for (here = model->VSRCinstances; here != NULL ;
|
||||||
here=here->VSRCnextInstance) {
|
here=here->VSRCnextInstance) {
|
||||||
|
|
||||||
if(!ckt->CKTmode & (MODETRAN | MODETRANOP)) {
|
if(~ckt->CKTmode & (MODETRAN | MODETRANOP)) {
|
||||||
/* not transient, so shouldn't be here */
|
/* not transient, so shouldn't be here */
|
||||||
return(OK);
|
return(OK);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue