From 270622cc183f8dc16f40aa015e52fdaf296fcf63 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz>
Date: Mon, 13 Dec 2021 22:06:20 +0100
Subject: [PATCH] cli: silent unsigned -> int cast

---
 alib2cli/src/common/ResultInterpret.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alib2cli/src/common/ResultInterpret.h b/alib2cli/src/common/ResultInterpret.h
index 528bdab91d..fea7f077ff 100644
--- a/alib2cli/src/common/ResultInterpret.h
+++ b/alib2cli/src/common/ResultInterpret.h
@@ -15,7 +15,7 @@ public:
 				return ptr1->getValue ( );
 			std::shared_ptr < abstraction::ValueHolderInterface < unsigned > > ptr2 = std::dynamic_pointer_cast < abstraction::ValueHolderInterface < unsigned > > ( result );
 			if ( ptr2 )
-				return ptr2->getValue ( );
+				return static_cast < int > ( ptr2->getValue ( ) );
 			std::shared_ptr < abstraction::ValueHolderInterface < bool > > ptr3 = std::dynamic_pointer_cast < abstraction::ValueHolderInterface < bool > > ( result );
 			if ( ptr3 )
 				return static_cast < int > ( ! ptr3->getValue ( ) );
-- 
GitLab