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.
This commit is contained in:
Dalai Felinto 2018-10-10 13:34:59 -03:00
parent 7dc2a5a267
commit 1b1702abb0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}