Skip to content

Commit

Permalink
build: fix gcc false positive 'stringop-overflow' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xiphon committed Sep 30, 2018
1 parent 83d8f03 commit fa9e54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_core/cryptonote_tx_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa9e54b

Please sign in to comment.