From: malaterre Date: Wed, 10 Nov 2004 15:54:45 +0000 (+0000) Subject: COMP: Fix comparison between signed and unisgned X-Git-Tag: Version1.0.bp~614 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d3b6521bf2c55ffb9850765697b8eeb338c18617;p=gdcm.git COMP: Fix comparison between signed and unisgned --- diff --git a/src/gdcmValEntry.cxx b/src/gdcmValEntry.cxx index 0a64c54c..b9823c2c 100644 --- a/src/gdcmValEntry.cxx +++ b/src/gdcmValEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.cxx,v $ Language: C++ - Date: $Date: 2004/11/08 15:18:02 $ - Version: $Revision: 1.34 $ + Date: $Date: 2004/11/10 15:54:45 $ + Version: $Revision: 1.35 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -188,7 +188,7 @@ void ValEntry::Write(std::ofstream* fp, FileType filetype) } std::string vr = GetVR(); - int lgr = GetReadLength(); + unsigned int lgr = GetReadLength(); if (vr == "US" || vr == "SS") { // some 'Short integer' fields may be mulivaluated