Skip to content

Commit

Permalink
Merge pull request zcash#6835 from conradoplg/fix-msvc-support
Browse files Browse the repository at this point in the history
make cache.cpp compile with MSVC
  • Loading branch information
daira authored Mar 15, 2024
2 parents 239edcf + 255755a commit cc81552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zcash/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BundleCacheHasher
{
static_assert(hash_select < 8, "BundleCacheHasher only has 8 hashes available.");
uint32_t u;
std::memcpy(&u, key.begin() + 4 * hash_select, 4);
std::memcpy(&u, key.data() + 4 * hash_select, 4);
return u;
}
};
Expand Down

0 comments on commit cc81552

Please sign in to comment.