Skip to content

Commit

Permalink
[#29] Added more casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv3n committed May 7, 2016
1 parent bf45e1e commit ad81ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CommandAnalysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ CommandAnalysis::CommandAnalysis(const int64_t nbrofBanks)
clearStats(0);
zero = 0;

bankstate.resize(nbrofBanks, 0);
last_states.resize(nbrofBanks);
bankstate.resize(static_cast<size_t>(nbrofBanks), 0);
last_states.resize(static_cast<size_t>(nbrofBanks));
mem_state = 0;
num_active_banks = 0;

cmd_list.clear();
full_cmd_list.resize(1, MemCommand::PRE);
cached_cmd.clear();
activation_cycle.resize(nbrofBanks, 0);
activation_cycle.resize(static_cast<size_t>(nbrofBanks), 0);
}

// function to clear counters
Expand Down

0 comments on commit ad81ca1

Please sign in to comment.