diff Framework/Radiography/RadiographyScene.cpp @ 507:ce49eae4c887 bgo-commands-codegen

Codegen + Warning fixes
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 01 Mar 2019 16:18:38 +0100
parents 77e0eb83ff63
children b336dfa71f12
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp	Tue Feb 26 21:33:16 2019 +0100
+++ b/Framework/Radiography/RadiographyScene.cpp	Fri Mar 01 16:18:38 2019 +0100
@@ -562,8 +562,8 @@
 
     Extent2D extent = GetSceneExtent();
 
-    int w = std::ceil(extent.GetWidth() / pixelSpacingX);
-    int h = std::ceil(extent.GetHeight() / pixelSpacingY);
+    int w = static_cast<int>(std::ceil(extent.GetWidth() / pixelSpacingX));
+    int h = static_cast<int>(std::ceil(extent.GetHeight() / pixelSpacingY));
 
     if (w < 0 || h < 0)
     {