fix negative pointers

This commit is contained in:
lizzie
2026-09-02 22:20:45 +00:00
parent 367884e453
commit a4184b440f
+1 -1
View File
@@ -274,7 +274,7 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
// <aa-.>
// <a-.>
// <aa>
for (; p + 1 > sline.cbegin() && std::isspace(p[-1]); --p)
for (; p - 1 >= sline.cbegin() && std::isspace(p[-1]); --p)
;
// now we have the preprocessed string ;)
std::string_view pp_str(sline_start, p);