diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-05 00:12:38 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-05 00:12:38 +0100 |
commit | 8d715666dbeb809ea625cd85211179283ad5d0f6 (patch) | |
tree | 526444f50583c4e4a26a91fd46665b853dc0b5e6 /src | |
parent | Added code to export definitions for a lua-language-server (#5475) (diff) | |
download | cuberite-template-id-ctor-warning.tar cuberite-template-id-ctor-warning.tar.gz cuberite-template-id-ctor-warning.tar.bz2 cuberite-template-id-ctor-warning.tar.lz cuberite-template-id-ctor-warning.tar.xz cuberite-template-id-ctor-warning.tar.zst cuberite-template-id-ctor-warning.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Vector3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Vector3.h b/src/Vector3.h index b48f35786..5df14b3ac 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -31,14 +31,14 @@ public: // tolua_end // Conversion constructors where U is not the same as T leaving the copy-constructor implicitly generated template <typename U, std::enable_if_t<(!std::is_same<U, T>::value) && ((!std::is_integral<T>::value) || (std::is_integral<U>::value)), bool> = true> - constexpr Vector3<T>(const Vector3<U> & a_Rhs): + constexpr Vector3(const Vector3<U> & a_Rhs): x(static_cast<T>(a_Rhs.x)), y(static_cast<T>(a_Rhs.y)), z(static_cast<T>(a_Rhs.z)) { } template <typename U, std::enable_if_t<(!std::is_same<U, T>::value) && ((std::is_integral<T>::value) && (!std::is_integral<U>::value)), bool> = true> - constexpr Vector3<T>(const Vector3<U> & a_Rhs): + constexpr Vector3(const Vector3<U> & a_Rhs): x(static_cast<T>(std::floor(a_Rhs.x))), y(static_cast<T>(std::floor(a_Rhs.y))), z(static_cast<T>(std::floor(a_Rhs.z))) |