Fix REALCVT warning on integral timescale conversions (#5378).

This commit is contained in:
Wilson Snyder
2024-08-24 08:01:28 -04:00
parent d8fdfa6be2
commit f0cd6dd95c
7 changed files with 64 additions and 23 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ public:
varNum.opIToRD(pinValuep->num());
var = varNum.toDouble();
}
return v3EpsilonEqual(var, hierOptParamp->num().toDouble());
return V3Number::epsilonEqual(var, hierOptParamp->num().toDouble());
} else { // Now integer type is assumed
// Bitwidth of hierOptParamp is accurate because V3Width already calculated in the
// previous run. Bitwidth of pinValuep is before width analysis, so pinValuep is casted