From 246bf1df64fd855e110b558f070ec3b1f62cff62 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 21 Jul 2022 22:06:21 +0300 Subject: [PATCH] Use C++17 ctor for string_view --- rpcs3/Emu/RSX/GL/glutils/program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/GL/glutils/program.cpp b/rpcs3/Emu/RSX/GL/glutils/program.cpp index f3d7a85f48..080a932530 100644 --- a/rpcs3/Emu/RSX/GL/glutils/program.cpp +++ b/rpcs3/Emu/RSX/GL/glutils/program.cpp @@ -81,7 +81,7 @@ namespace gl break; } - const auto macro_name = std::string_view(source.data() + name_start, source.data() + name_end + 1); + const auto macro_name = std::string_view(source.data() + name_start, (name_end - name_start) + 1); if (is_exempt(macro_name)) { continue;