diff Framework/Toolbox/FiniteProjectiveCamera.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 7719eb852dd5
children c3bbb130abc4
line wrap: on
line diff
--- a/Framework/Toolbox/FiniteProjectiveCamera.cpp	Thu May 16 20:39:30 2019 +0200
+++ b/Framework/Toolbox/FiniteProjectiveCamera.cpp	Fri May 17 08:49:55 2019 +0200
@@ -360,7 +360,8 @@
 
             // Read and accumulate the value of the pixel
             float pixel;
-            if (pixelReader.GetFloatValue(pixel, ix, iy))
+            if (pixelReader.GetFloatValue(
+              pixel, static_cast<float>(ix), static_cast<float>(iy)))
             {
               if (MIP)
               {