It was broken when the hash_code of two elements collisioned.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8288
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
current = dict->table[hash_code & dict->table_size];
while (current != NULL &&
current = dict->table[hash_code & dict->table_size];
while (current != NULL &&
- hash_code != current->hash_code && strcmp(key, current->key))
+ (hash_code != current->hash_code || strcmp(key, current->key)))
current = current->next;
if (current == NULL)
current = current->next;
if (current == NULL)