Skip to content

Commit

Permalink
try fix 32bit big endian build
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 16, 2019
1 parent 80e0fc5 commit cba7a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cista/containers/hash_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ struct hash_storage {

void initialize_entries() {
self_allocated_ = true;
auto const size =
capacity_ * sizeof(T) + (capacity_ + 1 + WIDTH) * sizeof(ctrl_t);
auto const size = size_t{capacity_ * sizeof(T) +
(capacity_ + 1 + WIDTH) * sizeof(ctrl_t)};
entries_ = reinterpret_cast<T*>(CISTA_ALIGNED_ALLOC(sizeof(T), size));
ctrl_ = reinterpret_cast<ctrl_t*>(
reinterpret_cast<uint8_t*>(ptr_cast(entries_)) + capacity_ * sizeof(T));
Expand Down

0 comments on commit cba7a12

Please sign in to comment.