fix sv construct

This commit is contained in:
lizzie
2026-09-01 02:10:14 +00:00
parent 12da7181ff
commit b9fe916bc0
+1 -1
View File
@@ -272,7 +272,7 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
for (; p > sline.cbegin() && std::isspace(*p); --p)
;
// now we have the preprocessed string ;)
std::string_view pp_str(sline_start, p);
std::string_view pp_str(sline_start, (size_t)(p - sline_start));
if (pp_str.size() > 0 && !parse_line(pp_str)) {
break;
}