diff --git a/src/spicelib/devices/isrc/isrcacct.c b/src/spicelib/devices/isrc/isrcacct.c index 5bd1acf12..5896681d4 100644 --- a/src/spicelib/devices/isrc/isrcacct.c +++ b/src/spicelib/devices/isrc/isrcacct.c @@ -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 { diff --git a/src/spicelib/devices/vsrc/vsrcacct.c b/src/spicelib/devices/vsrc/vsrcacct.c index 5ca61040e..29f984478 100644 --- a/src/spicelib/devices/vsrc/vsrcacct.c +++ b/src/spicelib/devices/vsrc/vsrcacct.c @@ -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 {