Fix build warnings for win64

Win64 has a 32-bit long. Use intptr_t to work on any data model.
This commit is contained in:
Robert Ou 2017-07-17 12:36:43 -07:00
parent c00d8a5b73
commit f0741698fa
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
};