From 19fb5652af762e12dc69b65105af440403f76339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 10 Sep 2025 12:48:31 +0200 Subject: [PATCH] Cleanup: GPU: Avoid warning in shader parser code --- source/blender/gpu/glsl_preprocess/shader_parser.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/blender/gpu/glsl_preprocess/shader_parser.hh b/source/blender/gpu/glsl_preprocess/shader_parser.hh index 14a7d6c64d0..45be25e14d2 100644 --- a/source/blender/gpu/glsl_preprocess/shader_parser.hh +++ b/source/blender/gpu/glsl_preprocess/shader_parser.hh @@ -35,7 +35,6 @@ #include #include -#include #include #include #include @@ -697,9 +696,9 @@ struct Scope { std::string_view str_view; const ParserData *data; - size_t index; + int64_t index; - static Scope from_position(const ParserData *data, size_t index) + static Scope from_position(const ParserData *data, int64_t index) { IndexRange index_range = data->scope_ranges[index]; int str_start = data->token_offsets[index_range.start].start; @@ -748,7 +747,7 @@ struct Scope { static Scope invalid() { - return {"", "", nullptr, size_t(-1)}; + return {"", "", nullptr, -1}; } bool is_valid() const