From 8d59b0ef45553b6636f19938c8f6f17745618cc3 Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Wed, 10 Jun 2020 17:59:18 +0200
Subject: [PATCH] conversion warning reduction.

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 compiler2/Setting.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler2/Setting.cc b/compiler2/Setting.cc
index 79561dfe2..d5da4a47f 100644
--- a/compiler2/Setting.cc
+++ b/compiler2/Setting.cc
@@ -1001,8 +1001,8 @@ namespace Common {
     if (errors.size() < *err_stack.top())
       FATAL_ERROR("Common::ReferenceChain::prev_error_state()");
 
-    int state = static_cast<int>(*err_stack.top());
-    for (int i = static_cast<int>(errors.size()) - 1; i >= state; --i) {
+    size_t state = *err_stack.top();
+    for (size_t i = errors.size() - 1; i >= state; --i) {
       errors.remove(i);
     }
     delete err_stack.pop();
-- 
GitLab