[*] Amend broken optimization

This commit is contained in:
Reece Wilson 2021-06-30 10:28:28 +01:00
parent f1445c63bb
commit 1d6efb1e4e

View File

@ -13,9 +13,9 @@ namespace Aurora::Parse
{
AuMach index = 0, startIdx = 0;
while ((index = in.find("\n"), startIdx) != AuString::npos)
while ((index = in.find("\n", startIdx)) != AuString::npos)
{
auto line = in.substr(0, index);
auto line = in.substr(startIdx, index - startIdx);
startIdx = index + 1;
if (line[line.size() - 1] == '\r')