From d5d884a661f92fb3719f998374e02273a141cba5 Mon Sep 17 00:00:00 2001 From: Guy Blelloch Date: Sun, 17 Nov 2024 13:11:33 -0500 Subject: [PATCH] changed a long to size_t (clang tidy was complaining) --- include/parlay/internal/block_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/parlay/internal/block_allocator.h b/include/parlay/internal/block_allocator.h index 912c7623..d9703bb0 100644 --- a/include/parlay/internal/block_allocator.h +++ b/include/parlay/internal/block_allocator.h @@ -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(::operator new(total_bytes, std::align_val_t{huge_page_size})); madvise(buffer, total_bytes, MADV_HUGEPAGE);