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.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy_app.c') 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) -- cgit v1.2.3