Mercurial > hg > orthanc-webviewer
diff UnitTestsSources/UnitTestsMain.cpp @ 13:09421764214b
fixes for visual studio
author | jodogne |
---|---|
date | Wed, 01 Apr 2015 13:20:45 +0200 |
parents | 02f7a0400a91 |
children | a6492d20b2a8 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Wed Mar 11 14:23:24 2015 +0100 +++ b/UnitTestsSources/UnitTestsMain.cpp Wed Apr 01 13:20:45 2015 +0200 @@ -193,10 +193,10 @@ { Orthanc::ImageBuffer img(16, 16, Orthanc::PixelFormat_Grayscale8); Orthanc::ImageAccessor accessor = img.GetAccessor(); - for (int y = 0, value = 0; y < img.GetHeight(); y++) + for (unsigned int y = 0, value = 0; y < img.GetHeight(); y++) { uint8_t* p = reinterpret_cast<uint8_t*>(accessor.GetRow(y)); - for (int x = 0; x < img.GetWidth(); x++, p++) + for (unsigned int x = 0; x < img.GetWidth(); x++, p++) { *p = value++; }