[enco.core] Resolve sign-compare warning (#3015)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Sun, 10 Feb 2019 23:43:43 +0000 (08:43 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Sun, 10 Feb 2019 23:43:43 +0000 (08:43 +0900)
This commit resolves a sign-compare warning in enco_core implementation.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/core/src/CppGen/Subnet.cpp

index a3c89c9..926fb39 100644 (file)
@@ -355,7 +355,7 @@ std::unique_ptr<SubnetStruct> SubnetStructBuilder::build(const ANNBinder *binder
     }
   });
 
-  for (auto n = 0; n < binder->module()->operation()->count(); ++n)
+  for (unsigned n = 0; n < binder->module()->operation()->count(); ++n)
   {
     auto op = binder->module()->operation()->at(n);
     res->ctor() << OperationDecl{mname, op};