diff --git a/tensorflow/lite/arena_planner.cc b/tensorflow/lite/arena_planner.cc index d97eca46929..dd5e3777fc1 100644 --- a/tensorflow/lite/arena_planner.cc +++ b/tensorflow/lite/arena_planner.cc @@ -197,7 +197,8 @@ TfLiteStatus ArenaPlanner::ExecuteAllocations(int first_node, int last_node) { dealloc_node_.resize(graph_info_->num_tensors(), kNodeNotAssigned); allocs_.resize(graph_info_->num_tensors()); // Set allocation and deallocation for temporary tensors. - for (size_t i = first_node; i <= last_node && i < graph_info_->num_nodes(); + for (size_t i = first_node; + i <= static_cast(last_node) && i < graph_info_->num_nodes(); ++i) { const TfLiteNode& node = graph_info_->node(i); TfLiteIntArray* node_temporaries = node.temporaries;