Explicit type to prevent overflow (#7106)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 3 Sep 2019 00:41:42 +0000 (09:41 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 3 Sep 2019 00:41:42 +0000 (09:41 +0900)
To remove integer overflow warning by svace, use explicit type int64_t, not auto

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/core/src/exec/DataflowExecutor.cc

index 7bc142a..a7f22c4 100644 (file)
@@ -27,7 +27,7 @@ namespace exec
 
 int64_t DataflowExecutor::calculateRank(const std::vector<model::Element> &operations)
 {
-  auto rank = 0;
+  int64_t rank = 0;
   if (!_indexed_ranks)
   {
     return rank;