diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-06-15 08:38:31 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-06-15 08:38:31 +0200 |
commit | 48dc6ab98dbd74bd7eb00f14b4bd8429531166f3 (patch) | |
tree | 064d1ca8b6b602fedcbffd9937cc93ec74de292c /frontends/ast/simplify.cc | |
parent | 11d2add1b9984a9dabe02e5073e09ca497024dd8 (diff) | |
download | yosys-48dc6ab98dbd74bd7eb00f14b4bd8429531166f3.tar.gz yosys-48dc6ab98dbd74bd7eb00f14b4bd8429531166f3.tar.bz2 yosys-48dc6ab98dbd74bd7eb00f14b4bd8429531166f3.zip |
Improved AstNode::asReal for large integers
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index ed5ee1721..80fd28d55 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -533,7 +533,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, if (children[0]->type == AST_REALVALUE) { RTLIL::Const constvalue = children[0]->realAsConst(width); log("Warning: converting real value %e to binary %s at %s:%d.\n", - realvalue, log_signal(constvalue), filename.c_str(), linenum); + children[0]->realvalue, log_signal(constvalue), filename.c_str(), linenum); delete children[0]; children[0] = mkconst_bits(constvalue.bits, sign_hint); did_something = true; |