diff --git a/glm/core/type_vec1.inl b/glm/core/type_vec1.inl index 735d4c0c..17943437 100644 --- a/glm/core/type_vec1.inl +++ b/glm/core/type_vec1.inl @@ -77,7 +77,7 @@ namespace detail GLM_FUNC_QUALIFIER tvec1::tvec1(std::initializer_list const & v) : x(static_cast(v.begin()[0])) { - assert(v.size() >= this->length()); + assert(v.size() == this->length()); } #endif//GLM_HAS_INITIALIZER_LISTS diff --git a/glm/core/type_vec2.inl b/glm/core/type_vec2.inl index 339d46bb..3c95d5eb 100644 --- a/glm/core/type_vec2.inl +++ b/glm/core/type_vec2.inl @@ -81,7 +81,7 @@ namespace detail x(static_cast(v.begin()[0])), y(static_cast(v.begin()[1])) { - assert(v.size() >= this->length()); + assert(v.size() == this->length()); } #endif//GLM_HAS_INITIALIZER_LISTS diff --git a/glm/core/type_vec3.inl b/glm/core/type_vec3.inl index 5ccb1e37..8a0babb7 100644 --- a/glm/core/type_vec3.inl +++ b/glm/core/type_vec3.inl @@ -85,7 +85,7 @@ namespace detail y(static_cast(v.begin()[1])), z(static_cast(v.begin()[2])) { - assert(v.size() >= this->length()); + assert(v.size() == this->length()); } #endif//GLM_HAS_INITIALIZER_LISTS diff --git a/glm/core/type_vec4.inl b/glm/core/type_vec4.inl index 6ea27f71..71371d75 100644 --- a/glm/core/type_vec4.inl +++ b/glm/core/type_vec4.inl @@ -89,7 +89,7 @@ namespace detail z(static_cast(v.begin()[2])), w(static_cast(v.begin()[3])) { - assert(v.size() >= this->length()); + assert(v.size() == this->length()); } #endif//GLM_HAS_INITIALIZER_LISTS diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index a824f7bd..82c9416c 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -92,7 +92,7 @@ namespace detail z(static_cast(l.begin()[2])), w(static_cast(l.begin()[3])) { - assert(l.size() >= this->length()); + assert(l.size() == this->length()); } #endif//GLM_HAS_INITIALIZER_LISTS