petewarden / c_hashmap

A simple string hashmap in C
http://petewarden.typepad.com/
Other
524 stars 206 forks source link

This item is no longer maintained!!!Unless someone can solve this problem for me!! #22

Open WangShuoran opened 2 years ago

WangShuoran commented 2 years ago

Please all of people search with "hashmap c" do not use this project code.

Unless someone can solve this problem for me!!

Why in hashmap.c the hashmap_hash_int strlen(keystring) is 0.

I think this is grammatical problems!!!

a1880 commented 2 years ago

The returned hash of an empty string is 0. Why is this a problem for you?

oldoldcoder commented 8 months ago

哥们差不多得了把这个问题关了吧,吓我一跳还以为真不能使用这个项目了

qq1601201705 commented 4 weeks ago

哥们差不多得了把这个问题关了吧,吓我一跳还以为真不能使用这个项目了

https://github.com/petewarden/c_hashmap/pull/23 在发现索引被(KeyA)占用后,keyB会被安置在下一个索引,但是如果索引的(KeyA)占用被delete后,再次add KeyB,KeyB就会被放置到完美索引上。这个问题不解决还真用不了,还是得先自行测试看看