X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFileHelper.cxx;fp=src%2FgdcmFileHelper.cxx;h=a7bbf6fd324ca31862ffab733ac4e1e9a71494ef;hb=df5a9566b70f78134a66ce582efe40d07b30ba3c;hp=e823ccd7dc70288ff5e0ac9e13429fe17c51dff9;hpb=019e0490da94a39fb0934ad94f5b8825f7537144;p=gdcm.git diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index e823ccd7..a7bbf6fd 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -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 "