]> Creatis software - gdcm.git/commitdiff
Port Mathieu's commit from gdcm1.2
authorjpr <jpr>
Wed, 5 Dec 2007 16:36:21 +0000 (16:36 +0000)
committerjpr <jpr>
Wed, 5 Dec 2007 16:36:21 +0000 (16:36 +0000)
src/gdcmDocument.cxx

index ddf263823ed14731de46efe1cc96ff9c80093a76..bd497da659500399d7fe77450548d686606f53b2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/12/03 11:46:38 $
-  Version:   $Revision: 1.375 $
+  Date:      $Date: 2007/12/05 16:36:21 $
+  Version:   $Revision: 1.376 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1757,7 +1757,7 @@ void Document::SkipDocEntry(DocEntry *entry)
 void Document::SkipToNextDocEntry(DocEntry *currentDocEntry) 
 {
    long l = currentDocEntry->GetReadLength();
-   if ( l == -1 ) // length = 0xffff shouldn't appear here ...
+   if ( (uint32_t) l == (uint32_t)-1 ) // length = 0xffff shouldn't appear here ...
                   // ... but PMS imagers happen !
       return;
    Fp->seekg((size_t)(currentDocEntry->GetOffset()), std::ios::beg); //FIXME :each DocEntry