From: jpr Date: Thu, 27 Oct 2005 11:55:45 +0000 (+0000) Subject: Still doesn't work on Big Endian processor, but we display error correctly X-Git-Tag: OpenJPEG.Version1.2~119 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0b31e4c3ee25732c2fc63acf647213f4e3a7745e;p=gdcm.git Still doesn't work on Big Endian processor, but we display error correctly --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index c5f48dff..031fe292 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/10/27 10:18:22 $ - Version: $Revision: 1.314 $ + Date: $Date: 2005/10/27 11:55:45 $ + Version: $Revision: 1.315 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1544,8 +1544,8 @@ VRKey Document::FindDocEntryVR() if ( !CheckDocEntryVR(vr) ) { gdcmWarningMacro( "Unknown VR " << std::hex << "0x(" - << vr[0] << vr[1] << ") at offset :" - << positionOnEntry ); + << (unsigned int)vr[0] << "|" << (unsigned int)vr[1] + << ") at offset :" << positionOnEntry ); Fp->seekg(positionOnEntry, std::ios::beg); return GDCM_VRUNKNOWN; }