From 51795131755dbc270c2823205c5f0b645b6c87a0 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 29 Jan 2024 12:17:52 -0500 Subject: [PATCH] Make prvalue return explicit for xcode (second attempt). --- src/chain/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }