Skip to content

Commit

Permalink
changed a long to size_t (clang tidy was complaining)
Browse files Browse the repository at this point in the history
  • Loading branch information
gblelloch committed Nov 17, 2024
1 parent 59291a5 commit d5d884a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/parlay/internal/block_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct block_allocator {
}

auto allocate_blocks(size_t num_blocks) -> std::byte* {
long total_bytes = num_blocks * block_size;
size_t total_bytes = num_blocks * block_size;
#ifdef UseHugepages
auto buffer = static_cast<std::byte*>(::operator new(total_bytes, std::align_val_t{huge_page_size}));
madvise(buffer, total_bytes, MADV_HUGEPAGE);
Expand Down

0 comments on commit d5d884a

Please sign in to comment.