diff options
| author | Aaron Franke <arnfranke@yahoo.com> | 2022-09-04 20:16:59 -0500 |
|---|---|---|
| committer | Aaron Franke <arnfranke@yahoo.com> | 2022-09-04 20:38:44 -0500 |
| commit | 058ac331b07a634f01eea18dbad4161503d407cb (patch) | |
| tree | da26b8748c26023385e87b9fbde20ccf823e180a /core/math/vector4i.cpp | |
| parent | e7a0a97c0bc5d86644e62d537503e3b05313a01c (diff) | |
| download | redot-engine-058ac331b07a634f01eea18dbad4161503d407cb.tar.gz | |
Minor fixes to Vector4
Diffstat (limited to 'core/math/vector4i.cpp')
| -rw-r--r-- | core/math/vector4i.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/math/vector4i.cpp b/core/math/vector4i.cpp index 2dc5b74202..a89b802675 100644 --- a/core/math/vector4i.cpp +++ b/core/math/vector4i.cpp @@ -84,8 +84,10 @@ Vector4i::operator Vector4() const { } Vector4i::Vector4i(const Vector4 &p_vec4) { - x = p_vec4.x; - y = p_vec4.y; - z = p_vec4.z; - w = p_vec4.w; + x = (int32_t)p_vec4.x; + y = (int32_t)p_vec4.y; + z = (int32_t)p_vec4.z; + w = (int32_t)p_vec4.w; } + +static_assert(sizeof(Vector4i) == 4 * sizeof(int32_t)); |
