From e6a3499bef0eb6b1cb9b30d2d47dead75976a40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 18 May 2020 15:21:26 +0200 Subject: [PATCH] Fix Visual Studio C4334 warning --- drivers/gles2/rasterizer_canvas_gles2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles2/rasterizer_canvas_gles2.cpp b/drivers/gles2/rasterizer_canvas_gles2.cpp index 494f688454f..02c32d91ff0 100644 --- a/drivers/gles2/rasterizer_canvas_gles2.cpp +++ b/drivers/gles2/rasterizer_canvas_gles2.cpp @@ -2333,7 +2333,7 @@ bool RasterizerCanvasGLES2::try_join_item(Item *p_ci, RenderItemState &r_ris, bo int light_count = -1; while (light) { light_count++; - uint64_t light_bit = 1 << light_count; + uint64_t light_bit = 1ULL << light_count; // note that as a cost of batching, the light culling will be less effective if (p_ci->light_mask & light->item_mask && r_ris.item_group_z >= light->z_min && r_ris.item_group_z <= light->z_max) {