diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-07 17:11:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-07 17:23:09 +0300 |
commit | 72d2355af525664671ed6089b31d5bbe126cd865 (patch) | |
tree | 2960526bd8f15e465193fcfe0a5b6c9f2a314e0b /source/blender/bmesh/intern/bmesh_operators.c | |
parent | dfac5a63bd1327e7748758267c51815e0ee28607 (diff) |
Cleanup: remove redundant cast, use const casts
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_operators.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c index c2421939aa8..e47fd1c035d 100644 --- a/source/blender/bmesh/intern/bmesh_operators.c +++ b/source/blender/bmesh/intern/bmesh_operators.c @@ -421,10 +421,10 @@ void BMO_slot_mat_set(BMOperator *op, slot->data.p = BLI_memarena_alloc(op->arena, sizeof(float[4][4])); if (size == 4) { - copy_m4_m4(slot->data.p, (float(*)[4])mat); + copy_m4_m4(slot->data.p, (const float(*)[4])mat); } else if (size == 3) { - copy_m4_m3(slot->data.p, (float(*)[3])mat); + copy_m4_m3(slot->data.p, (const float(*)[3])mat); } else { fprintf(stderr, "%s: invalid size argument %d (bmesh internal error)\n", __func__, size); |