X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/701a0b4766abbd9f2f8dee036004d77edc59c4d8..61d07ac77ac5ad7b91812b93b1870d361021314d:/src/common/rgncmn.cpp?ds=inline diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index 2368fbc133..801aaa9e3f 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -60,9 +60,9 @@ static bool DoRegionUnion(wxRegion& region, { unsigned char hiR, hiG, hiB; - hiR = wxMin(0xFF, loR + tolerance); - hiG = wxMin(0xFF, loG + tolerance); - hiB = wxMin(0xFF, loB + tolerance); + hiR = (unsigned char)wxMin(0xFF, loR + tolerance); + hiG = (unsigned char)wxMin(0xFF, loG + tolerance); + hiB = (unsigned char)wxMin(0xFF, loB + tolerance); // Loop through the image row by row, pixel by pixel, building up // rectangles to add to the region.