Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-10-10 19:34:59 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-10 19:35:34 +0300
commit1b1702abb0cb16c5c5e36db441af43ee31efde39 (patch)
tree572463e40c0bb69b888b1977a915721cfcd31a93 /source
parent7dc2a5a2676ec6169a38b5e6654f46547d1080df (diff)
Fix runtime error: shift of uint
The warning was: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Patch by Clément Foucault.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index d81780fcd9b..bcdf3a3cf08 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -3600,7 +3600,7 @@ static GPUVertBuf *mesh_batch_cache_create_edges_overlay_texture_buf(MeshRenderD
}
/* Non-manifold edge */
if (eav->vert_index[1] == -1) {
- value |= (1 << 31);
+ value |= (1u << 31);
}
GPU_vertbuf_attr_set(vbo, index_id, vidx++, &value);
}