Program: gdcm
Module: $RCSfile: gdcmDataEntry.cxx,v $
Language: C++
- Date: $Date: 2007/09/18 16:07:19 $
- Version: $Revision: 1.49 $
+ Date: $Date: 2007/10/30 09:14:41 $
+ Version: $Revision: 1.51 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
return *StrHexaArea;
// When short integer(s) are stored, convert the following (n * 2) characters
// as a displayable string, the values being separated by a back-slash
+
s2 << std::hex;
if( vr == "US" )
s2 << data[i];
}
*StrHexaArea=s2.str();
- } else if( vr == "FL" )
+ }
+ else if( vr == "FL" )
{
float *data=(float *)BinArea;
for (unsigned int i=0; i < GetValueCount(); i++)
}
else
{
- int l = (Length > GDCM_MAX_LENGTH_TO_CONVERT_TO_HEXA) ? GDCM_MAX_LENGTH_TO_CONVERT_TO_HEXA : Length;
+ unsigned int l = (Length > GDCM_MAX_LENGTH_TO_CONVERT_TO_HEXA) ? GDCM_MAX_LENGTH_TO_CONVERT_TO_HEXA : Length;
uint8_t *data=(uint8_t *)BinArea;
for (unsigned int i=0; i < l; i++)
{