X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllReadCompareDicom.cxx;h=56f5646b85814d3ae0bbb79aa6b1cabc31154077;hb=c3094723404202f691d827ca89cca24bbd8921e7;hp=ab0b3b45a08c7be2aaa7e10ca0f4ec1a86a4d385;hpb=3834fd91cb69c021c44cf6215203f72eeef7c2be;p=gdcm.git diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index ab0b3b45..56f5646b 100644 --- a/Testing/TestAllReadCompareDicom.cxx +++ b/Testing/TestAllReadCompareDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllReadCompareDicom.cxx,v $ Language: C++ - Date: $Date: 2005/04/18 01:50:54 $ - Version: $Revision: 1.38 $ + Date: $Date: 2005/04/19 10:05:36 $ + Version: $Revision: 1.39 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -102,8 +102,8 @@ private: int sizeX; int sizeY; int sizeZ; - int scalarSize; - int components; + uint16_t scalarSize; + uint16_t components; uint8_t *data; int swapCode; @@ -247,7 +247,7 @@ bool TestFile::ReadFileHeader(std::ifstream *fp) sizeY = ReadInt32(fp); // Size Y sizeZ = ReadInt32(fp); // Size Z scalarSize = ReadInt16(fp)/8; // bits per scalar - components = ReadInt16(fp); // Number of components + components = ReadInt16(fp); // Number of components return(true); } @@ -293,7 +293,7 @@ bool TestFile::WriteFileHeader(std::ofstream *fp) WriteInt32(fp,sizeY); // Size Y WriteInt32(fp,sizeZ); // Size Z WriteInt16(fp,scalarSize*8); // bits per scalar - WriteInt16(fp,components); // number of components + WriteInt16(fp,components); // number of components return(true); }