Commit 7ba8c0a4 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

gdi32/tests: Fix a signed/unsigned int mismatch.

parent e4a98928
...@@ -1051,7 +1051,7 @@ static void test_GetDIBits_selected_DIB(UINT bpp) ...@@ -1051,7 +1051,7 @@ static void test_GetDIBits_selected_DIB(UINT bpp)
info->bmiHeader.biBitCount = bpp; info->bmiHeader.biBitCount = bpp;
info->bmiHeader.biCompression = BI_RGB; info->bmiHeader.biCompression = BI_RGB;
for (i=0; i < (1 << bpp); i++) for (i=0; i < (1u << bpp); i++)
{ {
BYTE c = i * (1 << (8 - bpp)); BYTE c = i * (1 << (8 - bpp));
info->bmiColors[i].rgbRed = c; info->bmiColors[i].rgbRed = c;
...@@ -1085,7 +1085,7 @@ static void test_GetDIBits_selected_DIB(UINT bpp) ...@@ -1085,7 +1085,7 @@ static void test_GetDIBits_selected_DIB(UINT bpp)
/* Compare the color table and the bits */ /* Compare the color table and the bits */
equalContents = TRUE; equalContents = TRUE;
for (i=0; i < (1 << bpp); i++) for (i=0; i < (1u << bpp); i++)
{ {
if ((info->bmiColors[i].rgbRed != info2->bmiColors[i].rgbRed) if ((info->bmiColors[i].rgbRed != info2->bmiColors[i].rgbRed)
|| (info->bmiColors[i].rgbGreen != info2->bmiColors[i].rgbGreen) || (info->bmiColors[i].rgbGreen != info2->bmiColors[i].rgbGreen)
...@@ -1208,7 +1208,7 @@ static void test_GetDIBits_selected_DDB(BOOL monochrome) ...@@ -1208,7 +1208,7 @@ static void test_GetDIBits_selected_DDB(BOOL monochrome)
if (bpp <= 8) if (bpp <= 8)
{ {
equalContents = TRUE; equalContents = TRUE;
for (i=0; i < (1 << bpp); i++) for (i=0; i < (1u << bpp); i++)
{ {
if ((info->bmiColors[i].rgbRed != info2->bmiColors[i].rgbRed) if ((info->bmiColors[i].rgbRed != info2->bmiColors[i].rgbRed)
|| (info->bmiColors[i].rgbGreen != info2->bmiColors[i].rgbGreen) || (info->bmiColors[i].rgbGreen != info2->bmiColors[i].rgbGreen)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment