hwc test: 64-bit compilation error

* cast 1u to size_t in max() argument lists

Change-Id: I02f711c89e96e4cfc348f1c7bac455339bec2fa1
This commit is contained in:
Mark Salyzyn 2014-03-04 09:11:04 -08:00
parent 6b4e5b7f85
commit e933c0396f

View File

@ -574,8 +574,8 @@ void initFrames(unsigned int seed)
// mod the wMod/hMod value must be equal to 0. // mod the wMod/hMod value must be equal to 0.
size_t w = (width * maxSizeRatio) * testRandFract(); size_t w = (width * maxSizeRatio) * testRandFract();
size_t h = (height * maxSizeRatio) * testRandFract(); size_t h = (height * maxSizeRatio) * testRandFract();
w = max(1u, w); w = max(size_t(1u), w);
h = max(1u, h); h = max(size_t(1u), h);
if ((w % formatPtr->wMod) != 0) { if ((w % formatPtr->wMod) != 0) {
w += formatPtr->wMod - (w % formatPtr->wMod); w += formatPtr->wMod - (w % formatPtr->wMod);
} }