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_space.c | |
parent | f51a3aedc9540e0bcda4f16deec22e9aa722ef24 (diff) |
Cleanup: warnings bit-shift int overflow
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 9e7d70ab3b2..db4b097b9c3 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -413,8 +413,8 @@ static void rna_SpaceView3D_lock_camera_and_layers_set(PointerRNA *ptr, int valu /* seek for layact */ bit = 0; while (bit < 32) { - if (v3d->lay & (1 << bit)) { - v3d->layact = 1 << bit; + if (v3d->lay & (1u << bit)) { + v3d->layact = (1u << bit); break; } bit++; |