fixed an issue due to the 64-bit assumption

This commit is contained in:
Heng Li 2017-09-02 19:29:52 -04:00
parent 3d3fde8224
commit aeb6b5eeb1
1 changed files with 2 additions and 1 deletions

3
kdq.h
View File

@ -3,11 +3,12 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "kalloc.h"
#define __KDQ_TYPE(type) \
typedef struct { \
size_t front:58, bits:6, count, mask; \
uint64_t front:58, bits:6, count, mask; \
type *a; \
void *km; \
} kdq_##type##_t;