aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/script_ops.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-12 23:03:10 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-04-15 10:01:55 -0400
commitccccd5190898ece3ac17aa3178f320d091f221df (patch)
tree5788ed502c1de1eff00562a61edaa41f8aa8fafa /src/test/fuzz/script_ops.cpp
parent18f11fb24b47c6762e659b4bd3413f03e2c9ec99 (diff)
script: Remove undocumented and unused operator+
Diffstat (limited to 'src/test/fuzz/script_ops.cpp')
-rw-r--r--src/test/fuzz/script_ops.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/fuzz/script_ops.cpp b/src/test/fuzz/script_ops.cpp
index 0cd129ba7a..7d24af20ac 100644
--- a/src/test/fuzz/script_ops.cpp
+++ b/src/test/fuzz/script_ops.cpp
@@ -17,12 +17,16 @@ void test_one_input(const std::vector<uint8_t>& buffer)
CScript script = ConsumeScript(fuzzed_data_provider);
while (fuzzed_data_provider.remaining_bytes() > 0) {
switch (fuzzed_data_provider.ConsumeIntegralInRange(0, 7)) {
- case 0:
- script += ConsumeScript(fuzzed_data_provider);
+ case 0: {
+ CScript s = ConsumeScript(fuzzed_data_provider);
+ script = std::move(s);
break;
- case 1:
- script = script + ConsumeScript(fuzzed_data_provider);
+ }
+ case 1: {
+ const CScript& s = ConsumeScript(fuzzed_data_provider);
+ script = s;
break;
+ }
case 2:
script << fuzzed_data_provider.ConsumeIntegral<int64_t>();
break;