From: Ralph Ronnquist Date: Fri, 22 Jul 2022 05:41:53 +0000 (+1000) Subject: bug fix; item and key were mixed up X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=34a13e6c40b65d81d877bdbb4ddbff456e2d1543;p=rrq%2Frrqmisc.git bug fix; item and key were mixed up --- 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; }