diff options
author | Nico Weber <thakis@chromium.org> | 2020-12-18 11:16:17 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-18 17:35:30 +0100 |
commit | b67eed5b8090353553a185ea25bb4d36c50bf342 (patch) | |
tree | f1cd8f062aea526ecba5cf4a18e7f77d2de5fb2f | |
parent | 098f06f0427f9e70e043d6d6f404ff96c356b92f (diff) | |
download | serenity-b67eed5b8090353553a185ea25bb4d36c50bf342.zip |
LibGfx: Fix type of scale factor in Point scale operators
-rw-r--r-- | Libraries/LibGfx/Point.h | 6 |
1 files 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<T> operator*(int factor) const { return { m_x * factor, m_y * factor }; } + Point<T> operator*(T factor) const { return { m_x * factor, m_y * factor }; } Point<T>& operator*=(T factor) { @@ -146,9 +146,9 @@ public: return *this; } - Point<T> operator/(int factor) const { return { m_x / factor, m_y / factor }; } + Point<T> operator/(T factor) const { return { m_x / factor, m_y / factor }; } - Point<T>& operator/=(int factor) + Point<T>& operator/=(T factor) { m_x /= factor; m_y /= factor; |