summaryrefslogtreecommitdiff
path: root/opengl/tests/hwc/hwcStress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/tests/hwc/hwcStress.cpp')
-rw-r--r--opengl/tests/hwc/hwcStress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/tests/hwc/hwcStress.cpp b/opengl/tests/hwc/hwcStress.cpp
index 3e8ea8dba6..dfaa6c1202 100644
--- a/opengl/tests/hwc/hwcStress.cpp
+++ b/opengl/tests/hwc/hwcStress.cpp
@@ -574,8 +574,8 @@ void initFrames(unsigned int seed)
// mod the wMod/hMod value must be equal to 0.
size_t w = (width * maxSizeRatio) * testRandFract();
size_t h = (height * maxSizeRatio) * testRandFract();
- w = max(1u, w);
- h = max(1u, h);
+ w = max(size_t(1u), w);
+ h = max(size_t(1u), h);
if ((w % formatPtr->wMod) != 0) {
w += formatPtr->wMod - (w % formatPtr->wMod);
}