From: jpr Date: Thu, 3 Nov 2005 14:55:24 +0000 (+0000) Subject: Avoid warnings X-Git-Tag: OpenJPEG.Version1.2~68 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f8a96d834155a87a3593e0db44af1709ac06b33e;p=gdcm.git Avoid warnings --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 462ba6d5..0707e2b9 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/11/03 14:39:47 $ - Version: $Revision: 1.322 $ + Date: $Date: 2005/11/03 14:55:24 $ + Version: $Revision: 1.323 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -76,7 +76,6 @@ Document::~Document () //----------------------------------------------------------------------------- // Public - /** * \brief Loader. use SetLoadMode(), SetFileName() before ! * @return false if file cannot be open or no swap info was found, @@ -1544,7 +1543,7 @@ VRKey Document::FindDocEntryVR() if ( !CheckDocEntryVR(vr) ) { // Don't warn user with useless messages - if ( vr[0] != 0xff || vr[1] != 0xff ) + if ( (unsigned char)vr[0] != 0xff || (unsigned char)vr[1] != 0xff ) gdcmWarningMacro( "Unknown VR " << std::hex << "0x(" << (unsigned int)vr[0] << "|" << (unsigned int)vr[1] << ") at offset :" << positionOnEntry );