From f0741698fa45be21a137cdf297daad1ae948ca54 Mon Sep 17 00:00:00 2001 From: Robert Ou Date: Mon, 17 Jul 2017 12:36:43 -0700 Subject: [PATCH] Fix build warnings for win64 Win64 has a 32-bit long. Use intptr_t to work on any data model. --- kernel/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 3c824b8c3..4199e6f3a 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -147,7 +147,7 @@ struct hash_ptr_ops { return a == b; } static inline unsigned int hash(const void *a) { - return (unsigned long)a; + return (intptr_t)a; } }; -- 2.30.2