From f2a0062042edfafab2c0d9472f2669521ff70930 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Jun 2014 02:47:57 +1000 Subject: Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a)) --- source/blender/python/intern/bpy_app_ocio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy_app_ocio.c') diff --git a/source/blender/python/intern/bpy_app_ocio.c b/source/blender/python/intern/bpy_app_ocio.c index eff52bc9dae..02e4044219a 100644 --- a/source/blender/python/intern/bpy_app_ocio.c +++ b/source/blender/python/intern/bpy_app_ocio.c @@ -46,7 +46,7 @@ static PyStructSequence_Desc app_ocio_info_desc = { (char *)"bpy.app.ocio", /* name */ (char *)"This module contains information about OpenColorIO blender is linked against", /* doc */ app_ocio_info_fields, /* fields */ - (sizeof(app_ocio_info_fields) / sizeof(PyStructSequence_Field)) - 1 + ARRAY_SIZE(app_ocio_info_fields) - 1 }; static PyObject *make_ocio_info(void) -- cgit v1.2.3