diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-08 07:06:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-08 07:08:37 +0300 |
commit | a1d57e3f05f1602a07698e19f97f861d41f14775 (patch) | |
tree | 09d993cceed4d37c6d6a89ecd8aa764424aa0966 /source/blender/blenlib | |
parent | 171e77c3c25a1224fc5f7db40ec6f8879f8dbbb0 (diff) |
Cleanup: replace sizeof division with ARRAY_SIZE macro
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_rotation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c index a6368981050..d38c081ec2b 100644 --- a/source/blender/blenlib/intern/math_rotation.c +++ b/source/blender/blenlib/intern/math_rotation.c @@ -2363,8 +2363,8 @@ bool mat3_from_axis_conversion( value = ((src_forward << (0 * 3)) | (src_up << (1 * 3)) | (dst_forward << (2 * 3)) | (dst_up << (3 * 3))); - for (uint i = 0; i < (sizeof(_axis_convert_matrix) / sizeof(*_axis_convert_matrix)); i++) { - for (uint j = 0; j < (sizeof(*_axis_convert_lut) / sizeof(*_axis_convert_lut[0])); j++) { + for (uint i = 0; i < (ARRAY_SIZE(_axis_convert_matrix)); i++) { + for (uint j = 0; j < (ARRAY_SIZE(*_axis_convert_lut)); j++) { if (_axis_convert_lut[i][j] == value) { copy_m3_m3(r_mat, _axis_convert_matrix[i]); return true; |