suppress warnings from xvect.h and xhash.h
This commit is contained in:
parent
d33a98cd41
commit
1be24ae9d4
|
@ -21,7 +21,7 @@ extern "C" {
|
||||||
#define XHASH_RESIZE_RATIO 0.75
|
#define XHASH_RESIZE_RATIO 0.75
|
||||||
|
|
||||||
#define XHASH_ALIGNMENT 3 /* quad word alignment */
|
#define XHASH_ALIGNMENT 3 /* quad word alignment */
|
||||||
#define XHASH_MASK (~((1 << XHASH_ALIGNMENT) - 1))
|
#define XHASH_MASK (~(size_t)((1 << XHASH_ALIGNMENT) - 1))
|
||||||
#define XHASH_ALIGN(i) ((((i) - 1) & XHASH_MASK) + (1 << XHASH_ALIGNMENT))
|
#define XHASH_ALIGN(i) ((((i) - 1) & XHASH_MASK) + (1 << XHASH_ALIGNMENT))
|
||||||
|
|
||||||
typedef struct xh_entry {
|
typedef struct xh_entry {
|
||||||
|
@ -325,7 +325,7 @@ xh_ptr_hash(const void *key, void *data)
|
||||||
{
|
{
|
||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
return (size_t)*(const void **)key;
|
return (int)(size_t)*(const void **)key;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
|
|
@ -45,7 +45,7 @@ xv_init(xvect *x, size_t width)
|
||||||
x->data = NULL;
|
x->data = NULL;
|
||||||
x->width = width;
|
x->width = width;
|
||||||
x->size = 0;
|
x->size = 0;
|
||||||
x->mask = -1;
|
x->mask = (size_t)-1;
|
||||||
x->head = 0;
|
x->head = 0;
|
||||||
x->tail = 0;
|
x->tail = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue