diff options
author | 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com> | 2019-09-03 09:41:42 +0900 |
---|---|---|
committer | Chunseok Lee <chunseok.lee@samsung.com> | 2019-09-03 09:58:11 +0900 |
commit | f3ee35eb8d04aefa52cef46dc52a8a09cf8f1f4d (patch) | |
tree | 93603b1c6ee26501482e61cb828478295b4bbb1e | |
parent | 3c4729db1a5a927b584cedddd9843cc7f5dfadb5 (diff) | |
download | nnfw-f3ee35eb8d04aefa52cef46dc52a8a09cf8f1f4d.tar.gz nnfw-f3ee35eb8d04aefa52cef46dc52a8a09cf8f1f4d.tar.bz2 nnfw-f3ee35eb8d04aefa52cef46dc52a8a09cf8f1f4d.zip |
Explicit type to prevent overflow (#7106)submit/tizen/20190903.021009submit/tizen/20190903.012730submit/tizen/20190903.005839accepted/tizen/unified/20190903.052428
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>
-rw-r--r-- | runtimes/neurun/core/src/exec/DataflowExecutor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtimes/neurun/core/src/exec/DataflowExecutor.cc b/runtimes/neurun/core/src/exec/DataflowExecutor.cc index 7bc142a77..a7f22c430 100644 --- a/runtimes/neurun/core/src/exec/DataflowExecutor.cc +++ b/runtimes/neurun/core/src/exec/DataflowExecutor.cc @@ -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; |