diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-16 20:47:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-16 20:47:57 +0400 |
commit | f2a0062042edfafab2c0d9472f2669521ff70930 (patch) | |
tree | 661259338dadb701f6567d627061e81be41b35e5 /source/blender/python/intern/bpy_app_translations.c | |
parent | a6e290166b7565d5e70309d8e41fbc267321b551 (diff) |
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
Diffstat (limited to 'source/blender/python/intern/bpy_app_translations.c')
-rw-r--r-- | source/blender/python/intern/bpy_app_translations.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_app_translations.c b/source/blender/python/intern/bpy_app_translations.c index e168bf33eb5..109e5606037 100644 --- a/source/blender/python/intern/bpy_app_translations.c +++ b/source/blender/python/intern/bpy_app_translations.c @@ -390,13 +390,13 @@ static BLF_i18n_contexts_descriptor _contexts[] = BLF_I18NCONTEXTS_DESC; * This allows us to avoid many handwriting, and above all, to keep all context definition stuff in BLF_translation.h! */ static PyStructSequence_Field -app_translations_contexts_fields[sizeof(_contexts) / sizeof(BLF_i18n_contexts_descriptor)] = {{NULL}}; +app_translations_contexts_fields[ARRAY_SIZE(_contexts)] = {{NULL}}; static PyStructSequence_Desc app_translations_contexts_desc = { (char *)"bpy.app.translations.contexts", /* name */ (char *)"This named tuple contains all pre-defined translation contexts", /* doc */ app_translations_contexts_fields, /* fields */ - (sizeof(app_translations_contexts_fields) / sizeof(PyStructSequence_Field)) - 1 + ARRAY_SIZE(app_translations_contexts_fields) - 1 }; static PyObject *app_translations_contexts_make(void) |