diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-23 20:45:27 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-23 20:45:27 +0200 |
commit | 20a7965f61a43b8c367b1042081a57b5a4005b33 (patch) | |
tree | a3b320501371ec3611a0722895f9e511ea03ffef /frontends/ast/simplify.cc | |
parent | c094c53de83707a5bf1b268640283f1dde235873 (diff) | |
download | yosys-20a7965f61a43b8c367b1042081a57b5a4005b33.tar.gz yosys-20a7965f61a43b8c367b1042081a57b5a4005b33.tar.bz2 yosys-20a7965f61a43b8c367b1042081a57b5a4005b33.zip |
Various small fixes (from gcc compiler warnings)
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 f819b2506..d86bfb3f0 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -2259,7 +2259,7 @@ AstNode *AstNode::eval_const_function(AstNode *fcall) log_error("Non-constant range in %s:%d (called from %s:%d).\n", range->filename.c_str(), range->linenum, fcall->filename.c_str(), fcall->linenum); int offset = std::min(range->range_left, range->range_right); - int width = std::min(std::abs(range->range_left - range->range_right) + 1, width); + int width = std::abs(range->range_left - range->range_right) + 1; varinfo_t &v = variables[stmt->children.at(0)->str]; RTLIL::Const r = stmt->children.at(1)->bitsAsConst(v.val.bits.size()); for (int i = 0; i < width; i++) |