aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/hashlib.h
diff options
context:
space:
mode:
authorRobert Ou <rqou@robertou.com>2017-07-17 12:36:43 -0700
committerRobert Ou <rqou@robertou.com>2017-07-17 12:36:43 -0700
commitf0741698fa45be21a137cdf297daad1ae948ca54 (patch)
tree3531c8e312f61f660be463a7f7de4495d84e441a /kernel/hashlib.h
parentc00d8a5b73306b6fd02471382b25cc3dd321a2fc (diff)
downloadyosys-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.
Diffstat (limited to 'kernel/hashlib.h')
-rw-r--r--kernel/hashlib.h2
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;
}
};