diff Framework/Toolbox/ParallelSlicesCursor.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
line wrap: on
line diff
--- a/Framework/Toolbox/ParallelSlicesCursor.cpp	Thu May 16 20:39:30 2019 +0200
+++ b/Framework/Toolbox/ParallelSlicesCursor.cpp	Fri May 17 08:49:55 2019 +0200
@@ -110,7 +110,7 @@
       return false;
     }
 
-    int count = slices_->GetSliceCount();
+    int count = static_cast<int>(slices_->GetSliceCount());
     if (count == 0)
     {
       return false;
@@ -123,7 +123,7 @@
     }
     else
     {
-      slice = currentSlice_;
+      slice = static_cast<int>(currentSlice_);
     }
 
     switch (mode)