src/hash_map.c

changeset 1442
244fb8bc3584
parent 1429
6e0c3a8a914a
equal deleted inserted replaced
1441:78ec3e2243e4 1442:244fb8bc3584
84 void *value 84 void *value
85 ) { 85 ) {
86 struct cx_hash_map_s *hash_map = (struct cx_hash_map_s *) map; 86 struct cx_hash_map_s *hash_map = (struct cx_hash_map_s *) map;
87 const CxAllocator *allocator = map->collection.allocator; 87 const CxAllocator *allocator = map->collection.allocator;
88 88
89 unsigned hash = key.hash; 89 uint64_t hash = key.hash;
90 if (hash == 0) { 90 if (hash == 0) {
91 cx_hash_murmur(&key); 91 cx_hash_murmur(&key);
92 hash = key.hash; 92 hash = key.hash;
93 } 93 }
94 94
201 void *targetbuf, 201 void *targetbuf,
202 bool remove 202 bool remove
203 ) { 203 ) {
204 struct cx_hash_map_s *hash_map = (struct cx_hash_map_s *) map; 204 struct cx_hash_map_s *hash_map = (struct cx_hash_map_s *) map;
205 205
206 unsigned hash = key.hash; 206 uint64_t hash = key.hash;
207 if (hash == 0) { 207 if (hash == 0) {
208 cx_hash_murmur(&key); 208 cx_hash_murmur(&key);
209 hash = key.hash; 209 hash = key.hash;
210 } 210 }
211 211

mercurial