Code cleanup: fix a few harmless warnings.
[blender.git] / source / blender / python / gawain / gwn_py_types.c
index 4f6b354b7bec25d80d673cc6323fd7ae4b534502..3146993d66515f3cf1f038ac7dd07bdec545b0e1 100644 (file)
@@ -117,7 +117,7 @@ static int bpygwn_ParseVertFetchMode(PyObject *o, void *p)
                } \
        } ((void)0)
 
-       Gwn_VertCompType mode;
+       Gwn_VertFetchMode mode;
        MATCH_ID(FLOAT);
        MATCH_ID(INT);
        MATCH_ID(INT_TO_FLOAT_UNIT);
@@ -168,7 +168,7 @@ static int bpygwn_ParsePrimType(PyObject *o, void *p)
        return 0;
 
 success:
-       (*(Gwn_VertFetchMode *)p) = mode;
+       (*(Gwn_PrimType *)p) = mode;
        return 1;
 }