Explicit type to prevent overflow (#7106) accepted/tizen/unified/20190903.052428 submit/tizen/20190903.005839 submit/tizen/20190903.012730 submit/tizen/20190903.021009
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 3 Sep 2019 00:41:42 +0000 (09:41 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Tue, 3 Sep 2019 00:58:11 +0000 (09:58 +0900)
To remove integer overflow warning by svace, use explicit type int64_t, not auto

Change-Id: Ibfd98a8e1e44ba666b65451b5210c0c920388e08
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Signed-off-by: Chunseok Lee <chunseok.lee@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;