浏览代码

Fixed ticket #149, misleading call to row_size in the code

Christophe Riccio 14 年之前
父节点
当前提交
66408cfc4b

+ 2 - 2
glm/core/type_mat2x2.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat2x3.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat2x4.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat3x2.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat3x3.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat3x4.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat4x2.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat4x3.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_mat4x4.inl

@@ -57,7 +57,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 
@@ -68,7 +68,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < this->row_size());
+		assert(i < this->length());
 		return this->value[i];
 	}
 

+ 2 - 2
glm/core/type_vec1.inl

@@ -50,7 +50,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 
@@ -60,7 +60,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 

+ 2 - 2
glm/core/type_vec2.inl

@@ -51,7 +51,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 
@@ -62,7 +62,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 

+ 2 - 2
glm/core/type_vec3.inl

@@ -51,7 +51,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 
@@ -62,7 +62,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 

+ 2 - 2
glm/core/type_vec4.inl

@@ -51,7 +51,7 @@ namespace detail
 		size_type i
 	)
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}
 
@@ -62,7 +62,7 @@ namespace detail
 		size_type i
 	) const
 	{
-		assert(i < value_size());
+		assert(i < this->length());
 		return (&x)[i];
 	}