From a13db5be478bd54f36eff13989236e554e6fcef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 13 May 2025 16:17:27 +0200 Subject: [PATCH] Cleanup: EEVEE: Warnings tautological-constant-out-of-range-compare --- source/blender/draw/engines/eevee/eevee_material.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/draw/engines/eevee/eevee_material.hh b/source/blender/draw/engines/eevee/eevee_material.hh index 241a1d0c3b3..f740a824091 100644 --- a/source/blender/draw/engines/eevee/eevee_material.hh +++ b/source/blender/draw/engines/eevee/eevee_material.hh @@ -129,10 +129,10 @@ static inline uint64_t shader_uuid_from_material_type( eMaterialThickness thickness_type = MAT_THICKNESS_SPHERE, char blend_flags = 0) { - BLI_assert(displacement_type < (1 << 1)); - BLI_assert(thickness_type < (1 << 1)); - BLI_assert(geometry_type < (1 << 4)); - BLI_assert(pipeline_type < (1 << 4)); + BLI_assert(int64_t(displacement_type) < (1 << 1)); + BLI_assert(int64_t(thickness_type) < (1 << 1)); + BLI_assert(int64_t(geometry_type) < (1 << 4)); + BLI_assert(int64_t(pipeline_type) < (1 << 4)); uint64_t transparent_shadows = blend_flags & MA_BL_TRANSPARENT_SHADOW ? 1 : 0; uint64_t uuid;