diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-20 07:26:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-20 07:41:36 +0300 |
commit | cf29010bd4085b2ab76c58a30d1148265a879d69 (patch) | |
tree | a90ff2d7ee408c6d198d785f822c7a28ab9eb4fd /source/blender/editors/armature | |
parent | f51a3aedc9540e0bcda4f16deec22e9aa722ef24 (diff) |
Cleanup: warnings bit-shift int overflow
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c index 549a3854bac..bc900315247 100644 --- a/source/blender/editors/armature/pose_edit.c +++ b/source/blender/editors/armature/pose_edit.c @@ -862,7 +862,7 @@ static int pose_bone_layers_invoke(bContext *C, wmOperator *op, const wmEvent *e /* loop over the bits for this pchan's layers, adding layers where they're needed */ for (bit = 0; bit < 32; bit++) { - layers[bit] = (pchan->bone->layer & (1 << bit)) != 0; + layers[bit] = (pchan->bone->layer & (1u << bit)) != 0; } } CTX_DATA_END; @@ -936,8 +936,9 @@ static int armature_bone_layers_invoke(bContext *C, wmOperator *op, const wmEven /* loop over the bits for this pchan's layers, adding layers where they're needed */ for (bit = 0; bit < 32; bit++) { - if (ebone->layer & (1 << bit)) + if (ebone->layer & (1u << bit)) { layers[bit] = 1; + } } } CTX_DATA_END; |