Skip to content

Commit

Permalink
Make prvalue return explicit for xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jan 29, 2024
1 parent 5ca83e4 commit a01f406
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chain/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ bool input::extract_sigop_script(chain::script& out,

// Parse the embedded script from the last input script item (data).
// This cannot fail because there is no prefix to invalidate the length.
out = { ops.back().data(), false };
// Workaround: XCode inteprets this as both prvalue and rvalue (ambiguous).
////out = { ops.back().data(), false };
out = chain::script{ ops.back().data(), false };
return true;
}

Expand Down

0 comments on commit a01f406

Please sign in to comment.