Fix static analysis issues 32/283032/1
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 17 Oct 2022 04:18:59 +0000 (13:18 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 17 Oct 2022 04:18:59 +0000 (13:18 +0900)
Change-Id: I5c56a72f002fdbf71141f38a10095b499f17e3dd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
component_based/port/util.cc

index c032f2707a586193eb476b80632b4ed53cd7f936..1a23fd5523df84fc056df45b23e5b3603180a743 100644 (file)
@@ -40,7 +40,8 @@ void Util::Hexdump(const std::string& tag, const std::vector<uint8_t>& data) {
       break;
 
     ss << std::setw(8) << address;
-    nread = ((data.size() - address) > 16) ? 16 : (data.size() - address);
+    nread = static_cast<unsigned int>(
+        ((data.size() - address) > 16) ? 16 : (data.size() - address));
 
     for (unsigned int i = 0; i < 16; ++i) {
       if (i % 8 == 0)