comparison UnitTestsSources/FromDcmtkTests.cpp @ 1654:3727a09e7b53

fix some icc warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Sep 2015 15:03:35 +0200
parents 4e56b5a206b7
children ae09132e4237
comparison
equal deleted inserted replaced
1653:0c86b30bb8b2 1654:3727a09e7b53
179 ImageBuffer img; 179 ImageBuffer img;
180 img.SetWidth(256); 180 img.SetWidth(256);
181 img.SetHeight(256); 181 img.SetHeight(256);
182 img.SetFormat(PixelFormat_Grayscale16); 182 img.SetFormat(PixelFormat_Grayscale16);
183 183
184 int v = 0; 184 uint16_t v = 0;
185 for (unsigned int y = 0; y < img.GetHeight(); y++) 185 for (unsigned int y = 0; y < img.GetHeight(); y++)
186 { 186 {
187 uint16_t *p = reinterpret_cast<uint16_t*>(img.GetAccessor().GetRow(y)); 187 uint16_t *p = reinterpret_cast<uint16_t*>(img.GetAccessor().GetRow(y));
188 for (unsigned int x = 0; x < img.GetWidth(); x++, p++, v++) 188 for (unsigned int x = 0; x < img.GetWidth(); x++, p++, v++)
189 { 189 {