From 790e51a8e391f1468d83c016579b1c51a8fc7737 Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 1 Sep 2026 02:46:22 +0000 Subject: [PATCH] me when messup --- src/core/file_sys/ips_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 9ca8bdd1e0..4f0b90045d 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -272,7 +272,7 @@ void IPSwitchCompiler::Parse(std::span bytes) { for (; p > sline.cbegin() && std::isspace(*p); --p) ; // now we have the preprocessed string ;) - std::string_view pp_str(sline_start, size_t(std::distance(p, sline.cbegin()))); + std::string_view pp_str(sline_start, size_t(std::distance(sline.cbegin(), p))); if (pp_str.size() > 0 && !parse_line(pp_str)) { break; }