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 Dec 4, 2018
1 parent 9b39800 commit f6c1b28
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 f6c1b28

Please sign in to comment.