bug fix; item and key were mixed up
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 22 Jul 2022 05:41:53 +0000 (15:41 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 22 Jul 2022 05:41:53 +0000 (15:41 +1000)
vector/HashVector.c

index a07a9169b2c1167cff10c9ba8c37430f6b15898b..7b68c59f9f3e9ded09e8e3a4151bdbf94bb120c4 100644 (file)
@@ -57,7 +57,7 @@ static void **HashVector_find_slot(
 // Find the keyed item
 void *HashVector_find(HashVector *hv,void *key) {
     VectorIndex index = 0;
-    void **slot = HashVector_find_slot( hv, &index, key, 0 );
+    void **slot = HashVector_find_slot( hv, key, &index, 0 );
     return ( slot && *slot && *slot != HV_HOLE )? *slot : 0;
 }