diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-04 21:59:13 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-04 22:04:16 +0300 |
commit | 2115232a16d81d28dbdb8042ed8e9316858514c6 (patch) | |
tree | 1aeb7354a85b21b43a3ede7bf2980c172d4eec82 /source/blender/blenlib/intern/memory_utils.c | |
parent | e43d482cc93c64d55b1f58178db68551077e6560 (diff) |
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
No functional changes
Diffstat (limited to 'source/blender/blenlib/intern/memory_utils.c')
-rw-r--r-- | source/blender/blenlib/intern/memory_utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/intern/memory_utils.c b/source/blender/blenlib/intern/memory_utils.c index 91e75861dde..d477c20a242 100644 --- a/source/blender/blenlib/intern/memory_utils.c +++ b/source/blender/blenlib/intern/memory_utils.c @@ -31,16 +31,16 @@ #include "BLI_strict_flags.h" /** - * Check if memory is zero'd, as with memset(s, 0, nbytes) + * Check if memory is zero'd, as with memset(arr, 0, arr_size) */ -bool BLI_memory_is_zero(const void *s, const size_t nbytes) +bool BLI_memory_is_zero(const void *arr, const size_t arr_size) { - const char *s_byte = s; - const char *s_end = (const char *)s + nbytes; + const char *arr_byte = arr; + const char *arr_end = (const char *)arr + arr_size; - while ((s_byte != s_end) && (*s_byte == 0)) { - s_byte++; + while ((arr_byte != arr_end) && (*arr_byte == 0)) { + arr_byte++; } - return (s_byte == s_end); + return (arr_byte == arr_end); } |