removed warning-hiding cast, previous revision removed the warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-08-21 15:42:56 +00:00
parent d2ab06160e
commit e95f0d7986

View File

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