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/makesrna/intern/rna_controller.c | |
parent | f51a3aedc9540e0bcda4f16deec22e9aa722ef24 (diff) |
Cleanup: warnings bit-shift int overflow
Diffstat (limited to 'source/blender/makesrna/intern/rna_controller.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_controller.c b/source/blender/makesrna/intern/rna_controller.c index ba0214d36ec..605e28653f9 100644 --- a/source/blender/makesrna/intern/rna_controller.c +++ b/source/blender/makesrna/intern/rna_controller.c @@ -120,7 +120,7 @@ static int rna_Controller_state_number_get(struct PointerRNA *ptr) int bit; for (bit = 0; bit < 32; bit++) { - if (cont->state_mask & (1 << bit)) + if (cont->state_mask & (1u << bit)) return bit + 1; } return 0; |