mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
Fix evaluation wrong expression for const >= expressions.
This commit is contained in:
+1
-1
@@ -480,7 +480,7 @@ NetEConst* NetEBComp::eval_gteq_(const NetExpr*le, const NetExpr*re) const
|
||||
if (le->expr_type() == IVL_VT_REAL || re->expr_type() == IVL_VT_REAL)
|
||||
return eval_leeq_real_(re, le, true);
|
||||
|
||||
const NetEConst*l = dynamic_cast<const NetEConst*>(left_);
|
||||
const NetEConst*l = dynamic_cast<const NetEConst*>(le);
|
||||
if (l == 0) return 0;
|
||||
|
||||
verinum lv = l->value();
|
||||
|
||||
Reference in New Issue
Block a user