Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-01-10 02:58:49 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-01-10 02:58:49 +0300
commitd55eaefa8f065b210ca8ccef56ff4f3f47d9c2aa (patch)
treec25a71fb5e4284ecef3ae8d8596241d1e793ed8f
parent6ffa70a427f302015addd0d2be0b99a4a210c34d (diff)
Cleanup: Use type_length in vec4_base
-rw-r--r--source/blender/blenlib/BLI_math_vector.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.hh b/source/blender/blenlib/BLI_math_vector.hh
index 734aa8364a6..848f7f74187 100644
--- a/source/blender/blenlib/BLI_math_vector.hh
+++ b/source/blender/blenlib/BLI_math_vector.hh
@@ -1174,13 +1174,13 @@ template<typename bT> struct vec4_base {
const bT &operator[](int64_t index) const
{
- BLI_assert(index < 4);
+ BLI_assert(index < type_length);
return (&x)[index];
}
bT &operator[](int64_t index)
{
- BLI_assert(index < 4);
+ BLI_assert(index < type_length);
return (&x)[index];
}