From 34a13e6c40b65d81d877bdbb4ddbff456e2d1543 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Fri, 22 Jul 2022 15:41:53 +1000 Subject: [PATCH] bug fix; item and key were mixed up --- vector/HashVector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/HashVector.c b/vector/HashVector.c index a07a916..7b68c59 100644 --- a/vector/HashVector.c +++ b/vector/HashVector.c @@ -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; } -- 2.39.2