From: jpr Date: Thu, 30 Jun 2005 14:50:05 +0000 (+0000) Subject: To avoid compile time warnings X-Git-Tag: Version1.2.bp~393 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b6669dfbeb4eac3052f6b8755eff1eb34a0dcea5;p=gdcm.git To avoid compile time warnings (Hope so) --- diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index d6e46f31..c2030a43 100644 --- a/src/gdcmPixelReadConvert.cxx +++ b/src/gdcmPixelReadConvert.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelReadConvert.cxx,v $ Language: C++ - Date: $Date: 2005/06/23 09:18:37 $ - Version: $Revision: 1.72 $ + Date: $Date: 2005/06/30 14:50:05 $ + Version: $Revision: 1.73 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -940,7 +940,7 @@ bool PixelReadConvert::ConvertReArrangeBits() throw ( FormatError ) uint16_t smask = 0x0001; smask = smask << ( 16 - (BitsAllocated - BitsStored + 1) ); // nmask : to propagate sign bit on negative values - int16_t nmask = 0x8000; + int16_t nmask = (int16_t)0x8000; nmask = nmask >> ( BitsAllocated - BitsStored - 1 ); /* std::cout << "BitsStored " << BitsStored