diff options
| author | xiphon <xiphon@protonmail.com> | 2018-09-30 02:42:22 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2018-09-30 10:58:00 +0000 |
| commit | fa9e54b6eec065ece76312cc3f1abff2424fdc42 (patch) | |
| tree | b60138f6f243851161cc2171cb5a316c8c3cfb73 /src/cryptonote_core/cryptonote_tx_utils.cpp | |
| parent | 83d8f03c2338e865ce72f4e2d46d43a48530ab10 (diff) | |
| download | monzero-core-fa9e54b6eec065ece76312cc3f1abff2424fdc42.tar.gz monzero-core-fa9e54b6eec065ece76312cc3f1abff2424fdc42.tar.xz monzero-core-fa9e54b6eec065ece76312cc3f1abff2424fdc42.zip | |
build: fix gcc false positive 'stringop-overflow' warning
Diffstat (limited to 'src/cryptonote_core/cryptonote_tx_utils.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index fb2af9ceb..4bc33b56b 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -127,7 +127,7 @@ namespace cryptonote out_amounts[1] += out_amounts[0]; for (size_t n = 1; n < out_amounts.size(); ++n) out_amounts[n - 1] = out_amounts[n]; - out_amounts.resize(out_amounts.size() - 1); + out_amounts.pop_back(); } } else |
