From f6c1b28d30703c2e36fbf57d2aab7288da380b39 Mon Sep 17 00:00:00 2001 From: David Ward Date: Mon, 3 Dec 2018 19:02:31 -0500 Subject: [PATCH] Fix definition of kdq_*_t for non-64-bit platforms --- kdq.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kdq.h b/kdq.h index 6cef5a7a..52e1fc3d 100644 --- a/kdq.h +++ b/kdq.h @@ -3,10 +3,11 @@ #include #include +#include #define __KDQ_TYPE(type) \ typedef struct { \ - size_t front:58, bits:6, count, mask; \ + size_t front:((CHAR_BIT * sizeof(size_t)) - 6), bits:6, count, mask; \ type *a; \ } kdq_##type##_t;