mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-03 11:13:54 +00:00
fix negative pointers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user