Fix evaluation wrong expression for const >= expressions.

This commit is contained in:
Stephen Williams 2013-06-02 16:54:31 -07:00
parent 5c00b96127
commit bcaa6accec
1 changed files with 1 additions and 1 deletions

View File

@ -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();