Skip to content

Commit

Permalink
Fix build error in Visual Studio 17.7
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhl committed Sep 16, 2023
1 parent c6de4ca commit bcf3243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Welcome::encrypt(const KeyPackage& kp, const std::optional<bytes>& path_secret)
{
auto gs = GroupSecrets{ _joiner_secret, std::nullopt, _psks };
if (path_secret) {
gs.path_secret = { opt::get(path_secret) };
gs.path_secret = GroupSecrets::PathSecret{ opt::get(path_secret) };
}

auto gs_data = tls::marshal(gs);
Expand Down
2 changes: 1 addition & 1 deletion src/treekem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ TreeKEMPublicKey::merge(LeafIndex from, const UpdatePath& path)
parent_hash = ph[i + 1];
}

node_at(n).node = { ParentNode{
node_at(n).node = Node{ ParentNode{
path.nodes[i].public_key, parent_hash, {} } };
}

Expand Down

0 comments on commit bcf3243

Please sign in to comment.