Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Nov 4, 2024
1 parent d114d73 commit ccd9dd0
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -389,7 +389,7 @@ AnnotatedCommit::from(LeafIndex receiver,
// Compute the required coordinates
const auto coords =
tree_after.decap_coords(receiver, sender, joiner_locations);
resolution_index = coords.resolution_node_index;
resolution_index = static_cast<uint32_t>(coords.resolution_node_index);
}

// Provide new extensions if present
Expand Down
3 changes: 2 additions & 1 deletion src/treekem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,8 @@ operator>>(tls::istream& str, TreeKEMPublicKey& obj)
}

const auto node_size = NodeCount(obj.size);
for (uint32_t i = nodes.size(); i < node_size.val; i++) {
const auto provided_node_count = static_cast<uint32_t>(nodes.size());
for (uint32_t i = provided_node_count; i < node_size.val; i++) {
obj.nodes.insert_or_assign(NodeIndex(i), OptionalNode{});
}

Expand Down

0 comments on commit ccd9dd0

Please # to comment.