remove mesh and object arguments from bmesh operators, these are stored within the...
[blender-staging.git] / source / blender / bmesh / intern / bmesh_inline.c
index f251063b8fbc055b2fac9c5a44bef27c8381d126..88dab30a98ec8a3783bf07566cbecfb47fff1ad4 100644 (file)
@@ -3,10 +3,9 @@
 
 #include "bmesh.h"
 
-BM_INLINE int BM_TestHFlag(void *element, const int flag)
+BM_INLINE int BM_TestHFlag(const void *element, const int flag)
 {
-       BMHeader *e = element;
-       return e->flag & flag;
+       return ((BMHeader *)element)->flag & flag;
 }
 
 /*stuff for dealing with header flags*/