Skip to content

Commit ddf3e3a

Browse files
committed
Fix definition of kdq_*_t for non-64-bit platforms
1 parent 6e77e71 commit ddf3e3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kdq.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
#include <stdlib.h>
55
#include <string.h>
6+
#include <limits.h>
67

78
#define __KDQ_TYPE(type) \
89
typedef struct { \
9-
size_t front:58, bits:6, count, mask; \
10+
size_t front:((CHAR_BIT * sizeof(size_t)) - 6), bits:6, count, mask; \
1011
type *a; \
1112
} kdq_##type##_t;
1213

0 commit comments

Comments
 (0)