Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Hash_impl
diff PrivateHash.h @ 9:7c4d2bf121a9
Bugfix: Strings were used to handle keys. So 0 byte in key will terminate all functions.
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 28 Sep 2011 13:38:15 +0200 |
| parents | 5900d90f5d71 |
| children | 40ec8f9583d8 |
line diff
1.1 --- a/PrivateHash.h Mon Jul 11 18:10:14 2011 +0200 1.2 +++ b/PrivateHash.h Wed Sep 28 13:38:15 2011 +0200 1.3 @@ -13,6 +13,12 @@ 1.4 #define TRUE 1 1.5 #define FALSE 0 1.6 1.7 +union hashkey_t{ 1.8 + char hashable[8]; 1.9 + int parts[2]; 1.10 +}; 1.11 + 1.12 +typedef union hashkey_t hashkey_t; 1.13 1.14 #define DEFAULT_HASHSIZE 1 << 10 1.15
