aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-02 22:38:32 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-02 22:38:32 +0200
commitd1d64327b662b6cf70efa606c6a6c0d3eb2d7eaa (patch)
treea922b0235e7946e5b8148cbb8fb52ea1908953c6 /src/cryptonote_core
parentMerge pull request #4475 (diff)
parentbuild: fix gcc false positive 'stringop-overflow' warning (diff)
downloadmonero-d1d64327b662b6cf70efa606c6a6c0d3eb2d7eaa.tar.xz
Merge pull request #4476
fa9e54b6 build: fix gcc false positive 'stringop-overflow' warning (xiphon)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_tx_utils.cpp2
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