Mercurial > hg > orthanc-stone
diff Framework/Toolbox/DownloadStack.cpp @ 693:9a474e90e832
Fixed a bunch of truncation warnings in various parts of the library
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 17 May 2019 08:49:55 +0200 |
parents | b70e9be013e4 |
children | 4f2416d519b4 |
line wrap: on
line diff
--- a/Framework/Toolbox/DownloadStack.cpp Thu May 16 20:39:30 2019 +0200 +++ b/Framework/Toolbox/DownloadStack.cpp Fri May 17 08:49:55 2019 +0200 @@ -77,8 +77,8 @@ { for (size_t i = 0; i < size; i++) { - nodes_[i].prev_ = i - 1; - nodes_[i].next_ = i + 1; + nodes_[i].prev_ = static_cast<int>(i - 1); + nodes_[i].next_ = static_cast<int>(i + 1); nodes_[i].dequeued_ = false; }