Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
This commit is contained in:
@@ -60,7 +60,7 @@ static PyStructSequence_Desc app_ffmpeg_info_desc = {
|
||||
(char *)"bpy.app.ffmpeg", /* name */
|
||||
(char *)"This module contains information about FFmpeg blender is linked against", /* doc */
|
||||
app_ffmpeg_info_fields, /* fields */
|
||||
(sizeof(app_ffmpeg_info_fields) / sizeof(PyStructSequence_Field)) - 1
|
||||
ARRAY_SIZE(app_ffmpeg_info_fields) - 1
|
||||
};
|
||||
|
||||
static PyObject *make_ffmpeg_info(void)
|
||||
|
Reference in New Issue
Block a user