- Changed DEM_ADDSLOTDEFAULT, DEM_ADDSLOT, and DEM_SETSLOT to be more space-

efficient.


SVN r1445 (trunk)
This commit is contained in:
Randy Heit 2009-02-24 05:58:59 +00:00
commit c2b4522b8f
11 changed files with 247 additions and 85 deletions

View file

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