From 6716d29ca667ace886c25bcaf083325fa57ca348 Mon Sep 17 00:00:00 2001 From: regrain Date: Tue, 14 Dec 2004 13:05:33 +0000 Subject: [PATCH] * Fix few compilation warnings -- BeNours --- Testing/TestWriteSimple.cxx | 6 +++--- src/gdcmPixelReadConvert.cxx | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Testing/TestWriteSimple.cxx b/Testing/TestWriteSimple.cxx index 06d966ba..7b3160f5 100644 --- a/Testing/TestWriteSimple.cxx +++ b/Testing/TestWriteSimple.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestWriteSimple.cxx,v $ Language: C++ - Date: $Date: 2004/12/10 21:32:11 $ - Version: $Revision: 1.8 $ + Date: $Date: 2004/12/14 13:05:33 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -212,7 +212,7 @@ int WriteSimple(Image &img) // Step 6 : Compare to the written image std::cout << "6..."; - int dataSizeWritten = reread->GetImageDataSize(); + size_t dataSizeWritten = reread->GetImageDataSize(); uint8_t* imageDataWritten = reread->GetImageData(); // Test the image size diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index 1439cdef..6c26c7a5 100644 --- a/src/gdcmPixelReadConvert.cxx +++ b/src/gdcmPixelReadConvert.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelReadConvert.cxx,v $ Language: C++ - Date: $Date: 2004/12/14 08:31:30 $ - Version: $Revision: 1.10 $ + Date: $Date: 2004/12/14 13:05:34 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -175,24 +175,24 @@ void PixelReadConvert::ReadAndDecompress12BitsTo16Bits( std::ifstream* fp ) */ bool PixelReadConvert::DecompressRLE16BitsFromRLE8Bits( int NumberOfFrames ) { - size_t PixelNumber = XSize * YSize; - size_t RawSize = XSize * YSize * NumberOfFrames; + size_t pixelNumber = XSize * YSize; + size_t rawSize = XSize * YSize * NumberOfFrames; // We assumed Raw contains the decoded RLE pixels but as // 8 bits per pixel. In order to convert those pixels to 16 bits // per pixel we cannot work in place within Raw and hence // we copy it in a safe place, say copyRaw. - uint8_t* copyRaw = new uint8_t[ RawSize * 2 ]; - memmove( copyRaw, Raw, RawSize * 2 ); + uint8_t* copyRaw = new uint8_t[ rawSize * 2 ]; + memmove( copyRaw, Raw, rawSize * 2 ); uint8_t* x = Raw; uint8_t* a = copyRaw; - uint8_t* b = a + PixelNumber; + uint8_t* b = a + pixelNumber; for ( int i = 0; i < NumberOfFrames; i++ ) { - for ( unsigned int j = 0; j < PixelNumber; j++ ) + for ( unsigned int j = 0; j < pixelNumber; j++ ) { *(x++) = *(b++); *(x++) = *(a++); -- 2.48.1