Fix some cppcheck warnings in the main directory

This commit is contained in:
Cary R
2012-08-08 11:28:20 -07:00
parent 429babf831
commit 7ce8a9b01c
11 changed files with 32 additions and 33 deletions
+1 -1
View File
@@ -721,7 +721,7 @@ bool PEIdent::elaborate_lval_net_packed_member_(Design*des, NetScope*scope,
ivl_assert(*this, use_sel == index_component_t::SEL_NONE || use_sel == index_component_t::SEL_BIT);
if (name_tail.index.size() > 0) {
if (! name_tail.index.empty()) {
// Evaluate all but the last index expression, into prefix_indices.
list<long>prefix_indices;
bool rc = evaluate_index_prefix(des, scope, prefix_indices, name_tail.index);