[*] Amend broken optimization
This commit is contained in:
parent
f1445c63bb
commit
1d6efb1e4e
@ -13,9 +13,9 @@ namespace Aurora::Parse
|
|||||||
{
|
{
|
||||||
AuMach index = 0, startIdx = 0;
|
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;
|
startIdx = index + 1;
|
||||||
|
|
||||||
if (line[line.size() - 1] == '\r')
|
if (line[line.size() - 1] == '\r')
|
||||||
|
Loading…
Reference in New Issue
Block a user