Skip to content

Commit

Permalink
Fix definition of kdq_*_t for non-64-bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
dpward committed Apr 1, 2020
1 parent 6e77e71 commit ddf3e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kdq.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

#include <stdlib.h>
#include <string.h>
#include <limits.h>

#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;

Expand Down

0 comments on commit ddf3e3a

Please sign in to comment.