Skip to content

Commit

Permalink
Fix windows build (#542)
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
  • Loading branch information
rwalworth authored Oct 16, 2023
1 parent 162be47 commit 512a2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/main/src/impl/EntityIdHelper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ std::string checksum(std::string_view address, const LedgerId& ledgerId)
unsigned int ledgerIdWeightedSum = 0U;
std::for_each(ledgerIdArray.cbegin(),
ledgerIdArray.cend(),
[&ledgerIdWeightedSum](std::byte byte)
[&ledgerIdWeightedSum, &weight](std::byte byte)
{ ledgerIdWeightedSum = ledgerIdWeightedSum * weight + std::to_integer<unsigned int>(byte); });
ledgerIdWeightedSum %= p5;

Expand Down

0 comments on commit 512a2f2

Please sign in to comment.