diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-18 07:13:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-18 07:16:34 +0300 |
commit | 8a26fec6ea76330d82f323c1bbf765320ceb7796 (patch) | |
tree | 0604a3de874d4ba5afdf665f3c6078fae49c9856 /source/blender/python/mathutils/mathutils_Euler.c | |
parent | 4dfbaa34c98acd5940d7fb85b8d1f54ea7e4451e (diff) |
Cleanup: use const casts in mathutils API
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Euler.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Euler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_Euler.c b/source/blender/python/mathutils/mathutils_Euler.c index f2a8af18073..b6a0183d04e 100644 --- a/source/blender/python/mathutils/mathutils_Euler.c +++ b/source/blender/python/mathutils/mathutils_Euler.c @@ -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'): |