From df5a9566b70f78134a66ce582efe40d07b30ba3c Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 14 Sep 2007 12:57:02 +0000 Subject: [PATCH] ENH: sometime you need to hold your compiler hand to guide him... --- src/gdcmFileHelper.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 " -- 2.45.1