]> git.kaiwu.me - klib.git/commit
Remove bogus kh_del() in example code
authorDaniel Roethlisberger <daniel@roe.ch>
Sat, 11 Feb 2012 23:41:45 +0000 (00:41 +0100)
committerDaniel Roethlisberger <daniel@roe.ch>
Sat, 11 Feb 2012 23:41:45 +0000 (00:41 +0100)
commitc3686a8557647af81f45e14746eaa8bce18621ef
tree0bf838cc4869318e19a9512de00f1b7b0777f0f5
parente8bf8d5b6ad1661336cc82e3971648ac9b884c99
Remove bogus kh_del() in example code

The kh_del() causes the overwritten entry to be marked deleted and
subsequently not found when using kh_get().  For integer typed hash
tables, there is no need to check whether we are overwriting an existing
entry or creating a new one.
khash.h