gcc warning

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-01-18 11:26:08 -08:00
parent a83d5c9673
commit 4480c5a929
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public:
int &bidirect_count,
int &load_count,
const Network *network);
virtual void operator()(Pin *pin);
virtual void operator()(const Pin *pin);
protected:
Pin *drvr_pin_;
@ -133,7 +133,7 @@ FindNetDrvrLoadCounts::FindNetDrvrLoadCounts(Pin *drvr_pin,
}
void
FindNetDrvrLoadCounts::operator()(Pin *pin)
FindNetDrvrLoadCounts::operator()(const Pin *pin)
{
if (network_->isDriver(pin)) {
if (pin != drvr_pin_)