Skip to content

Commit

Permalink
remove comparison of signed and unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
okdshin committed Oct 9, 2018
1 parent 29cab9b commit 34638d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ namespace menoh_impl {

std::vector<procedure> new_op_proc_list;

for(; current_index < node_list.size(); ++current_index) {
for(; current_index < static_cast<int>(node_list.size());
++current_index) {
auto const& node = node_list.at(current_index);
std::vector<array> input_list;
std::vector<procedure> new_copy_procedure_list;
Expand Down Expand Up @@ -131,7 +132,9 @@ namespace menoh_impl {
std::make_move_iterator(new_copy_procedure_list.end()));

assert(node.output_name_list.size() == output_list.size());
for(int i = 0; i < node.output_name_list.size(); ++i) {
for(int i = 0;
i < static_cast<int>(node.output_name_list.size());
++i) {
variable_table_.emplace(node.output_name_list.at(i),
output_list.at(i));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ namespace menoh_impl {

std::vector<mkldnn::primitive> primitive_list;

for(; current_index < node_list.size(); ++current_index) {
for(; current_index < static_cast<int>(node_list.size());
++current_index) {
auto const& node = node_list.at(current_index);
std::vector<array> input_list;
std::vector<procedure> new_copy_procedure_list;
Expand Down

0 comments on commit 34638d1

Please sign in to comment.