diff --git a/src/chain/input.cpp b/src/chain/input.cpp index 268fd06866..3db30b6c67 100644 --- a/src/chain/input.cpp +++ b/src/chain/input.cpp @@ -343,7 +343,7 @@ bool input::extract_sigop_script(chain::script& out, // This cannot fail because there is no prefix to invalidate the length. // Workaround: XCode inteprets this as both prvalue and rvalue (ambiguous). ////out = { ops.back().data(), false }; - out = chain::script{ ops.back().data(), false }; + out = std::move(chain::script{ ops.back().data(), false }); return true; }