diff options
author | Robert Ou <rqou@robertou.com> | 2017-07-17 12:36:43 -0700 |
---|---|---|
committer | Robert Ou <rqou@robertou.com> | 2017-07-17 12:36:43 -0700 |
commit | f0741698fa45be21a137cdf297daad1ae948ca54 (patch) | |
tree | 3531c8e312f61f660be463a7f7de4495d84e441a | |
parent | c00d8a5b73306b6fd02471382b25cc3dd321a2fc (diff) | |
download | yosys-f0741698fa45be21a137cdf297daad1ae948ca54.tar.gz yosys-f0741698fa45be21a137cdf297daad1ae948ca54.tar.bz2 yosys-f0741698fa45be21a137cdf297daad1ae948ca54.zip |
Fix build warnings for win64
Win64 has a 32-bit long. Use intptr_t to work on any data model.
-rw-r--r-- | kernel/hashlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } }; |