Cleanup: use const casts in mathutils API

This commit is contained in:
2021-05-18 14:13:20 +10:00
parent 4dfbaa34c9
commit 8a26fec6ea
4 changed files with 31 additions and 31 deletions

View File

@@ -88,7 +88,7 @@ short euler_order_from_string(const char *str, const char *error_prefix)
# define MAKE_ID3(a, b, c) (((a) << 24) | ((b) << 16) | ((c) << 8))
#endif
switch (*((PY_INT32_T *)str)) {
switch (*((const PY_INT32_T *)str)) {
case MAKE_ID3('X', 'Y', 'Z'):
return EULER_ORDER_XYZ;
case MAKE_ID3('X', 'Z', 'Y'):