Index: Source/platform/mac/ThemeMac.mm |
diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm |
index a405ba50289a7383c1ea37a1c0dfb4bb5d6caf89..0c8007f2a7abc4c79d2524b6313d38fe4a0766cb 100644 |
--- a/Source/platform/mac/ThemeMac.mm |
+++ b/Source/platform/mac/ThemeMac.mm |
@@ -550,7 +550,7 @@ static void paintStepper(ControlStates states, GraphicsContext* context, const I |
// Center the stepper rectangle in the specified area. |
backgroundBounds.origin.x = bounds.origin.x + (bounds.size.width - backgroundBounds.size.width) / 2; |
if (backgroundBounds.size.height < bounds.size.height) { |
- int heightDiff = clampToInteger(bounds.size.height - backgroundBounds.size.height); |
+ int heightDiff = clampTo<int>(bounds.size.height - backgroundBounds.size.height); |
backgroundBounds.origin.y = bounds.origin.y + (heightDiff / 2) + 1; |
} |