diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-01-10 02:58:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-01-10 02:58:49 +0300 |
commit | d55eaefa8f065b210ca8ccef56ff4f3f47d9c2aa (patch) | |
tree | c25a71fb5e4284ecef3ae8d8596241d1e793ed8f | |
parent | 6ffa70a427f302015addd0d2be0b99a4a210c34d (diff) |
Cleanup: Use type_length in vec4_base
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.hh | 4 |
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]; } |