]> Creatis software - gdcm.git/blobdiff - Testing/TestAllReadCompareDicom.cxx
Avoid some warnings
[gdcm.git] / Testing / TestAllReadCompareDicom.cxx
index bc0dfa88eed06dd5901a3a90a9681479c1dd08e5..ef51a8c1e479508505ba01cc7869e33e08cb5171 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllReadCompareDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/02 09:39:04 $
-  Version:   $Revision: 1.50 $
+  Date:      $Date: 2005/11/03 14:07:12 $
+  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
@@ -284,7 +284,7 @@ bool TestFile::ReadFileData(std::ifstream *fp)
    // We *know* the .tst files are written in 'Little Endian' format.
    // We *know* DataSize may be 1 or 2 !  
    uint16_t g;   
-   for (int i=0; i<GetDataSize()/2; i++)
+   for (unsigned int i=0; i<GetDataSize()/2; i++)
    {
       g = ((uint16_t *)Data)[i];
       g = ( g << 8 |  g >> 8  );