Merge pull request #4476

fa9e54b6 build: fix gcc false positive 'stringop-overflow' warning (xiphon)
This commit is contained in:
Riccardo Spagni 2018-10-02 22:38:32 +02:00
commit d1d64327b6
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -127,7 +127,7 @@ namespace cryptonote
out_amounts[1] += out_amounts[0]; out_amounts[1] += out_amounts[0];
for (size_t n = 1; n < out_amounts.size(); ++n) for (size_t n = 1; n < out_amounts.size(); ++n)
out_amounts[n - 1] = out_amounts[n]; out_amounts[n - 1] = out_amounts[n];
out_amounts.resize(out_amounts.size() - 1); out_amounts.pop_back();
} }
} }
else else