Merge pull request #19 from lioncash/constexpr

CVector2i: Make CVector2f-related constructor non-constexpr
This commit is contained in:
Phillip Stephens 2019-09-06 00:59:47 -07:00 committed by GitHub
commit 949dbff9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ public:
constexpr CVector2i(int32_t xin, int32_t yin) noexcept : x(xin), y(yin) {}
constexpr CVector2i(const CVector2f& vec) noexcept : x(int32_t(vec.x())), y(int32_t(vec.y())) {}
CVector2i(const CVector2f& vec) noexcept : x(int32_t(vec.x())), y(int32_t(vec.y())) {}
constexpr CVector2f toVec2f() const noexcept { return CVector2f(float(x), float(y)); }