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:
authorCampbell Barton <ideasman42@gmail.com>2020-08-08 07:06:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-08 07:08:37 +0300
commita1d57e3f05f1602a07698e19f97f861d41f14775 (patch)
tree09d993cceed4d37c6d6a89ecd8aa764424aa0966 /source/blender/makesrna/intern/makesrna.c
parent171e77c3c25a1224fc5f7db40ec6f8879f8dbbb0 (diff)
Cleanup: replace sizeof division with ARRAY_SIZE macro
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r--source/blender/makesrna/intern/makesrna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 8781a3f448f..779e4363be0 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -3590,7 +3590,7 @@ static void rna_generate_struct_prototypes(FILE *f)
if (found == 0) {
fprintf(f, "struct %s;\n", struct_name);
- if (all_structures >= sizeof(structures) / sizeof(structures[0])) {
+ if (all_structures >= ARRAY_SIZE(structures)) {
printf("Array size to store all structures names is too small\n");
exit(1);
}