changeset 528:45f4953f4162 bgo-commands-codegen

fixed warnings
author Benjamin Golinvaux <bgo@osimis.io>
date Sun, 17 Mar 2019 20:14:46 +0100
parents b1377625e4ba
children 7b29a8599318
files Applications/Samples/SingleFrameApplication.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameApplication.h	Sun Mar 17 20:14:20 2019 +0100
+++ b/Applications/Samples/SingleFrameApplication.h	Sun Mar 17 20:14:46 2019 +0100
@@ -138,7 +138,7 @@
 
           if (slice >= static_cast<int>(source_->GetSliceCount()))
           {
-            slice = source_->GetSliceCount() - 1;
+            slice = static_cast<int>(source_->GetSliceCount()) - 1;
           }
 
           if (slice != static_cast<int>(slice_)) 
@@ -160,7 +160,7 @@
         if (source_ != NULL &&
             index < source_->GetSliceCount())
         {
-          slice_ = index;
+          slice_ = static_cast<unsigned int>(index);
           
 #if 1
           GetMainWidget().SetSlice(source_->GetSlice(slice_).GetGeometry());