- Changed DEM_ADDSLOTDEFAULT, DEM_ADDSLOT, and DEM_SETSLOT to be more space-
efficient. SVN r1445 (trunk)
This commit is contained in:
parent
a71e87b9df
commit
c2b4522b8f
11 changed files with 247 additions and 85 deletions
|
|
@ -390,7 +390,7 @@ typedef unsigned int hash_t;
|
|||
template<class KT> struct THashTraits
|
||||
{
|
||||
// Returns the hash value for a key.
|
||||
hash_t Hash(const KT key) { return hash_t(key); }
|
||||
hash_t Hash(const KT key) { return (hash_t)(intptr_t)key; }
|
||||
|
||||
// Compares two keys, returning zero if they are the same.
|
||||
int Compare(const KT left, const KT right) { return left != right; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue