From 7f82382b6ed020d99706bb39fca4490d78f2c5ea Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Wed, 1 Jan 2020 16:01:48 +1000 Subject: [PATCH] Compilation fix for Musl systems --- src/dasynq/dasynq-daryheap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dasynq/dasynq-daryheap.h b/src/dasynq/dasynq-daryheap.h index d824137..2143ad2 100644 --- a/src/dasynq/dasynq-daryheap.h +++ b/src/dasynq/dasynq-daryheap.h @@ -6,6 +6,8 @@ #include #include +#include + #include "dasynq-svec.h" @@ -206,7 +208,7 @@ class dary_heap hnd.heap_index = -1; // largest object size is PTRDIFF_MAX, so we expect the largest vector is that / sizeof node: - constexpr hindex_t max_allowed = (std::numeric_limits::max() - 1) / sizeof(heap_node); + constexpr hindex_t max_allowed = (std::numeric_limits::max() - 1) / sizeof(heap_node); if (num_nodes == max_allowed) { throw std::bad_alloc(); -- 2.25.1