From: Robert Ou Date: Mon, 17 Jul 2017 19:36:43 +0000 (-0700) Subject: Fix build warnings for win64 X-Git-Tag: yosys-0.8~387^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0741698fa45be21a137cdf297daad1ae948ca54;p=yosys.git Fix build warnings for win64 Win64 has a 32-bit long. Use intptr_t to work on any data model. --- 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; } };