Skip to content

Commit

Permalink
Make prvalue return explicit for xcode (second attempt).
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jan 29, 2024
1 parent a01f406 commit 5179513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5179513

Please sign in to comment.