From b6669dfbeb4eac3052f6b8755eff1eb34a0dcea5 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 30 Jun 2005 14:50:05 +0000 Subject: [PATCH] To avoid compile time warnings (Hope so) --- src/gdcmPixelReadConvert.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.48.1