Potential fix for code scanning alert no. 93: Unsigned difference expression compared to zero
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
committed by
teejusb
co-authored by
Copilot Autofix powered by AI
parent
69e33037ed
commit
dddba8bbda
@@ -1432,7 +1432,7 @@ void SMLoader::ParseBGChangesString(const RString& _sChanges, std::vector<std::v
|
|||||||
if (RString::npos == pos)
|
if (RString::npos == pos)
|
||||||
pos = _sChanges.size();
|
pos = _sChanges.size();
|
||||||
|
|
||||||
if (pos - start > 0) {
|
if (pos != start) {
|
||||||
if ((start == 0) && (pos == _sChanges.size()))
|
if ((start == 0) && (pos == _sChanges.size()))
|
||||||
sChanges = _sChanges;
|
sChanges = _sChanges;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user