From b67eed5b8090353553a185ea25bb4d36c50bf342 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 18 Dec 2020 11:16:17 -0500 Subject: [PATCH] LibGfx: Fix type of scale factor in Point scale operators --- Libraries/LibGfx/Point.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibGfx/Point.h b/Libraries/LibGfx/Point.h index 3860358ae7..1fa40a6a26 100644 --- a/Libraries/LibGfx/Point.h +++ b/Libraries/LibGfx/Point.h @@ -137,7 +137,7 @@ public: return *this; } - Point operator*(int factor) const { return { m_x * factor, m_y * factor }; } + Point operator*(T factor) const { return { m_x * factor, m_y * factor }; } Point& operator*=(T factor) { @@ -146,9 +146,9 @@ public: return *this; } - Point operator/(int factor) const { return { m_x / factor, m_y / factor }; } + Point operator/(T factor) const { return { m_x / factor, m_y / factor }; } - Point& operator/=(int factor) + Point& operator/=(T factor) { m_x /= factor; m_y /= factor;