]> Creatis software - gdcm.git/commitdiff
ENH: sometime you need to hold your compiler hand to guide him...
authormalaterre <malaterre>
Fri, 14 Sep 2007 12:57:02 +0000 (12:57 +0000)
committermalaterre <malaterre>
Fri, 14 Sep 2007 12:57:02 +0000 (12:57 +0000)
src/gdcmFileHelper.cxx

index e823ccd7dc70288ff5e0ac9e13429fe17c51dff9..a7bbf6fd324ca31862ffab733ac4e1e9a71494ef 100644 (file)
@@ -4,8 +4,8 @@
   Module:    $RCSfile: gdcmFileHelper.cxx,v $
   Language:  C++
 
-  Date:      $Date: 2007/09/04 13:14:33 $
-  Version:   $Revision: 1.127 $
+  Date:      $Date: 2007/09/14 12:57:02 $
+  Version:   $Revision: 1.128 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -868,7 +868,7 @@ bool FileHelper::CheckWriteIntegrity()
       switch(WriteMode)
       {
          case WMODE_RAW :
-            if ( abs(decSize-userDataSize)>1) // ignore padding zero
+            if ( abs((long)(decSize-userDataSize))>1) // ignore padding zero
             {
                gdcmWarningMacro( "Data size (Raw) is incorrect. Should be " 
                            << decSize << " / Found :" 
@@ -877,7 +877,7 @@ bool FileHelper::CheckWriteIntegrity()
             }
             break;
          case WMODE_RGB :
-            if ( abs(rgbSize-userDataSize)>1) // ignore padding zero
+            if ( abs((long)(rgbSize-userDataSize))>1) // ignore padding zero
             {
                gdcmWarningMacro( "Data size (RGB) is incorrect. Should be " 
                           << rgbSize << " / Found "