From 9ea0ef22f6917595b21ae7594c0e54c1042e5e1a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 3 Mar 2005 19:40:51 +0000 Subject: [PATCH] Avoid "cast of pointer to a smaller integer type" warnings. --- lib/hashfunc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hashfunc.h b/lib/hashfunc.h index 2b2713ea..17a865b1 100644 --- a/lib/hashfunc.h +++ b/lib/hashfunc.h @@ -40,6 +40,6 @@ uns hash_string_nocase(const byte *str) CONST; * instructions are slow). */ static inline uns CONST hash_int(uns x) { return 0x01008041*x; } -static inline uns CONST hash_pointer(void *x) { return hash_int((uns)x); } +static inline uns CONST hash_pointer(void *x) { return hash_int((uns)(addr_int_t)x); } #endif -- 2.39.2