From 0df34b4c9604827328e56a9b57a77181ae7c6a66 Mon Sep 17 00:00:00 2001 From: pepevel Date: Tue, 27 Sep 2016 20:12:03 +0100 Subject: [PATCH] Support for 64 bit pointers on Windows --- linkhash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkhash.h b/linkhash.h index b9e114b..a606345 100644 --- a/linkhash.h +++ b/linkhash.h @@ -340,8 +340,8 @@ static inline unsigned long lh_get_hash(const struct lh_table *t, const void *k) /* Don't use this outside of linkhash.h: */ #ifdef __UNCONST #define _LH_UNCONST(a) __UNCONST(a) -#else -#define _LH_UNCONST(a) ((void *)(unsigned long)(const void *)(a)) +#else +#define _LH_UNCONST(a) ((void *)(uintptr_t)(const void *)(a)) #endif /** -- 2.49.0