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>2014-06-16 20:47:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-16 20:47:57 +0400
commitf2a0062042edfafab2c0d9472f2669521ff70930 (patch)
tree661259338dadb701f6567d627061e81be41b35e5 /source/blender/python/intern/bpy_app.c
parenta6e290166b7565d5e70309d8e41fbc267321b551 (diff)
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r--source/blender/python/intern/bpy_app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 795015c42a0..6c4f8f0769f 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -107,7 +107,7 @@ static PyStructSequence_Desc app_info_desc = {
(char *)"bpy.app", /* name */
(char *)"This module contains application values that remain unchanged during runtime.", /* doc */
app_info_fields, /* fields */
- (sizeof(app_info_fields) / sizeof(PyStructSequence_Field)) - 1
+ ARRAY_SIZE(app_info_fields) - 1
};
static PyObject *make_app_info(void)