From 8e4268930e658d1bd63b81e08a5f441b8ea9c75d Mon Sep 17 00:00:00 2001 From: tomas7770 <77364520+tomas7770@users.noreply.github.com> Date: Wed, 24 Jan 2024 21:49:45 +0000 Subject: [PATCH] fix(rendering): add missing uint32_t cast --- engine/src/cubos/engine/renderer/plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/cubos/engine/renderer/plugin.cpp b/engine/src/cubos/engine/renderer/plugin.cpp index 69454e7fc2..ab2f38b3ab 100644 --- a/engine/src/cubos/engine/renderer/plugin.cpp +++ b/engine/src/cubos/engine/renderer/plugin.cpp @@ -65,7 +65,7 @@ static void frameGrids(const Assets& assets, Renderer& renderer, RendererFrame& grid.handle = renderer->upload(gridRead.get()); } - CUBOS_ASSERT(entity.index < (1 << 31), "Entity index must be lower than 2^31"); + CUBOS_ASSERT(entity.index < static_cast(1 << 31), "Entity index must be lower than 2^31"); frame.draw(grid.handle, localToWorld.mat * glm::translate(glm::mat4(1.0F), grid.offset), entity.index); } }