From d0017eb5f2e6ebb9bfbdf2b6081685c998d6b9dc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 20 Sep 2015 20:27:09 +1000 Subject: fix build error w/ clang --- source/blender/makesdna/DNA_meshdata_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/makesdna/DNA_meshdata_types.h') diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h index e5cb222bdd8..59e6f28804a 100644 --- a/source/blender/makesdna/DNA_meshdata_types.h +++ b/source/blender/makesdna/DNA_meshdata_types.h @@ -452,8 +452,8 @@ enum { * So usage such as array lookup needs to check. */ #define ME_MAT_NR_TEST(mat_nr, totmat) \ - (CHECK_TYPE_ANY(mat_nr, short), \ - CHECK_TYPE_ANY(totmat, short), \ + (CHECK_TYPE_ANY(mat_nr, short, const short), \ + CHECK_TYPE_ANY(totmat, short, const short), \ (LIKELY(mat_nr < totmat) ? mat_nr : 0)) /* mselect->type */ -- cgit v1.2.3