fix build error w/ clang

This commit is contained in:
Campbell Barton 2015-09-20 20:27:09 +10:00 committed by Sergey Sharybin
parent 74b210387f
commit c8200c000a
1 changed files with 2 additions and 2 deletions

View File

@ -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 */