mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-13 18:12:50 -05:00
More static analysis fixes
This commit is contained in:
@@ -125,7 +125,7 @@ std::vector<xmrig::String> xmrig::String::split(char sep) const
|
||||
|
||||
for (pos = 0; pos < m_size; ++pos) {
|
||||
if (m_data[pos] == sep) {
|
||||
if ((pos - start) > 0) {
|
||||
if (pos > start) {
|
||||
out.emplace_back(m_data + start, pos - start);
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ std::vector<xmrig::String> xmrig::String::split(char sep) const
|
||||
}
|
||||
}
|
||||
|
||||
if ((pos - start) > 0) {
|
||||
if (pos > start) {
|
||||
out.emplace_back(m_data + start, pos - start);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user