]> granicus.if.org Git - json-c/commitdiff
Support for 64 bit pointers on Windows
authorpepevel <pepevel@yahoo.com>
Tue, 27 Sep 2016 19:12:03 +0000 (20:12 +0100)
committerpepevel <pepevel@yahoo.com>
Tue, 27 Sep 2016 19:12:03 +0000 (20:12 +0100)
linkhash.h

index b9e114b0c017ec61262e5eb993efb71c9da8a328..a606345e75d8a7f134f9d3270773eb1802b49b4b 100644 (file)
@@ -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\r
+#define _LH_UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
 #endif
 
 /**