From 85dcf96a8a2720ba9cd0038020a61a3ca68cc8d0 Mon Sep 17 00:00:00 2001 From: tg-at-google Date: Mon, 1 Jun 2020 20:04:52 +0000 Subject: [PATCH] in resolution of [Wsign-compare] warning id 1 #c3 Co-authored-by: Mihai Maruseac --- tensorflow/lite/arena_planner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/lite/arena_planner.cc b/tensorflow/lite/arena_planner.cc index 6359cac47f3..a614d115dcf 100644 --- a/tensorflow/lite/arena_planner.cc +++ b/tensorflow/lite/arena_planner.cc @@ -197,7 +197,7 @@ 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 <= (size_t)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;