From: pepevel Date: Tue, 27 Sep 2016 19:12:03 +0000 (+0100) Subject: Support for 64 bit pointers on Windows X-Git-Tag: json-c-0.13-20171207~124^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0df34b4c9604827328e56a9b57a77181ae7c6a66;p=json-c Support for 64 bit pointers on Windows --- 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 /**