X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65fd5cb0124e62ab1fc41f93382a205d95b00e75..9b7e522ae97eb3d62bfb9ce6f527f1368c576e93:/src/msw/dibutils.cpp?ds=sidebyside diff --git a/src/msw/dibutils.cpp b/src/msw/dibutils.cpp index 31bcfb7e29..923135a2a4 100644 --- a/src/msw/dibutils.cpp +++ b/src/msw/dibutils.cpp @@ -716,7 +716,7 @@ HPALETTE MakePalette(const BITMAPINFO FAR* Info, UINT flags) logPal->palVersion = 0x300; // Windows 3.0 version logPal->palNumEntries = nColors; - for (short n = 0; n < nColors; n++) { + for (WORD n = 0; n < nColors; n++) { logPal->palPalEntry[n].peRed = rgb[n].rgbRed; logPal->palPalEntry[n].peGreen = rgb[n].rgbGreen; logPal->palPalEntry[n].peBlue = rgb[n].rgbBlue;