fix: logic error

This commit is contained in:
3lswear
2022-03-07 14:19:13 +03:00
parent b60dd2775a
commit 3287b5c75f

View File

@@ -210,7 +210,7 @@ int checkEnd(const std::string& str, const std::string& end)
{
i--;
j--;
if (i < 0 || str[i] != end[j])
if (str[i] != end[j])
return (1);
}
return (0);