Skip to content

Commit 642057b

Browse files
committed
use GLM_ASSERT_LENGTH in dual_quaternion component access
1 parent f6230f8 commit 642057b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glm/gtx/dual_quaternion.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace glm
1010
template<typename T, qualifier Q>
1111
GLM_FUNC_QUALIFIER typename tdualquat<T, Q>::part_type & tdualquat<T, Q>::operator[](typename tdualquat<T, Q>::length_type i)
1212
{
13-
assert(i >= 0 && i < this->length());
13+
GLM_ASSERT_LENGTH(i, this->length());
1414
return (&real)[i];
1515
}
1616

1717
template<typename T, qualifier Q>
1818
GLM_FUNC_QUALIFIER typename tdualquat<T, Q>::part_type const& tdualquat<T, Q>::operator[](typename tdualquat<T, Q>::length_type i) const
1919
{
20-
assert(i >= 0 && i < this->length());
20+
GLM_ASSERT_LENGTH(i, this->length());
2121
return (&real)[i];
2222
}
2323

0 commit comments

Comments
 (0)