diff Core/ImageFormats/ImageProcessing.cpp @ 876:e21d1a5f5934

fix msvc warnings
author jodogne
date Wed, 11 Jun 2014 14:08:42 +0200
parents 3c0d0836f704
children 501880d76474
line wrap: on
line diff
--- a/Core/ImageFormats/ImageProcessing.cpp	Wed Jun 11 13:23:05 2014 +0200
+++ b/Core/ImageFormats/ImageProcessing.cpp	Wed Jun 11 14:08:42 2014 +0200
@@ -151,11 +151,11 @@
 
         if (v > maxValue)
         {
-          *p = maxValue;
+          *p = std::numeric_limits<PixelType>::max();
         }
         else if (v < minValue)
         {
-          *p = minValue;
+          *p = std::numeric_limits<PixelType>::min();
         }
         else
         {
@@ -189,11 +189,11 @@
 
         if (v > maxValue)
         {
-          *p = maxValue;
+          *p = std::numeric_limits<PixelType>::max();
         }
         else if (v < minValue)
         {
-          *p = minValue;
+          *p = std::numeric_limits<PixelType>::min();
         }
         else
         {