Skip to content

Commit

Permalink
Merge pull request #253 from bitshares/revert-250-update-unpack-stati…
Browse files Browse the repository at this point in the history
…c-variant

Revert "Avoid potential corruption during unpack of static_variant"
  • Loading branch information
abitmore committed Feb 6, 2024
2 parents 4dc64ba + e820266 commit fe9f7e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/fc/io/raw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,8 @@ namespace fc {
--_max_depth;
unsigned_int w;
fc::raw::unpack( s, w, _max_depth );
static_variant<T...> helper( static_cast<typename static_variant<T...>::tag_type>(w.value) );
helper.visit( unpack_static_variant<Stream>( s, _max_depth ) );
sv = helper;
sv.set_which(w.value);
sv.visit( unpack_static_variant<Stream>( s, _max_depth ) );
}

} } // namespace fc::raw
Expand Down

0 comments on commit fe9f7e1

Please sign in to comment.