]> Creatis software - gdcm.git/commitdiff
Avoid warnings
authorjpr <jpr>
Thu, 3 Nov 2005 14:55:24 +0000 (14:55 +0000)
committerjpr <jpr>
Thu, 3 Nov 2005 14:55:24 +0000 (14:55 +0000)
src/gdcmDocument.cxx

index 462ba6d5521b5e4474bb9190d66a9796f99257cf..0707e2b97c8617304c39580f184ff9996a37d3c1 100644 (file)
@@ -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 );