1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

Use C++17 ctor for string_view

This commit is contained in:
kd-11 2022-07-21 22:06:21 +03:00 committed by kd-11
parent 9a868e9239
commit 246bf1df64

View File

@ -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;