Warning fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2004-08-20 11:53:52 +00:00
parent 98bdbbe31b
commit e567515efd

View File

@ -961,7 +961,7 @@ bool wxImage::ConvertAlphaToMask(unsigned threshold)
{
for (size_t x = 0; x < w; x++, imgdata += 3, alphadata++)
{
if (*alphadata < threshold)
if ((unsigned)(*alphadata) < threshold)
{
imgdata[0] = mr;
imgdata[1] = mg;