includes/uthash.h: fix -Wcast-qual error
This commit is contained in:
parent
b8e611a149
commit
58158f28c3
@ -144,7 +144,7 @@ typedef unsigned char uint8_t;
|
|||||||
/* calculate the element whose hash handle address is hhp */
|
/* calculate the element whose hash handle address is hhp */
|
||||||
#define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho)))
|
#define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho)))
|
||||||
/* calculate the hash handle from element address elp */
|
/* calculate the hash handle from element address elp */
|
||||||
#define HH_FROM_ELMT(tbl,elp) ((UT_hash_handle *)(((char*)(elp)) + ((tbl)->hho)))
|
#define HH_FROM_ELMT(tbl,elp) ((UT_hash_handle *)(void *)(((char*)(elp)) + ((tbl)->hho)))
|
||||||
|
|
||||||
#define HASH_ROLLBACK_BKT(hh, head, itemptrhh) \
|
#define HASH_ROLLBACK_BKT(hh, head, itemptrhh) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user