Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))

This commit is contained in:
2014-06-17 02:47:57 +10:00
parent a6e290166b
commit f2a0062042
13 changed files with 18 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ static PyStructSequence_Desc app_oiio_info_desc = {
(char *)"bpy.app.oiio", /* name */
(char *)"This module contains information about OpeImageIO blender is linked against", /* doc */
app_oiio_info_fields, /* fields */
(sizeof(app_oiio_info_fields) / sizeof(PyStructSequence_Field)) - 1
ARRAY_SIZE(app_oiio_info_fields) - 1
};
static PyObject *make_oiio_info(void)