X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/078cf5cb756c4f4113d7acf04ebd6a2535ef75b3..f90387b4b4b34545f8131fe00df20048af57f1e2:/src/msw/palette.cpp diff --git a/src/msw/palette.cpp b/src/msw/palette.cpp index 4a73bb28b2..0d46158e02 100644 --- a/src/msw/palette.cpp +++ b/src/msw/palette.cpp @@ -87,7 +87,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre return false; npPal->palVersion = 0x300; - npPal->palNumEntries = n; + npPal->palNumEntries = (WORD)n; int i; for (i = 0; i < n; i ++)