diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index fdab5a9766..113e3fe799 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -274,7 +274,7 @@ void IPSwitchCompiler::Parse(std::span bytes) { // // // - 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);