From 4c72f912068b1ed870d1660e242c216ae9b9b02a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 29 Sep 2024 19:26:15 -0700 Subject: [PATCH] Improved variable name [skip ci] --- src/hnswutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index 6016cc8..019e230 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -1104,12 +1104,12 @@ LoadElementsForInsert(HnswNeighborArray * neighbors, Datum q, HnswCandidate * *p * Update connections */ void -HnswUpdateConnection(char *base, HnswElement element, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation) +HnswUpdateConnection(char *base, HnswElement newElement, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation) { HnswElement hce = HnswPtrAccess(base, hc->element); HnswCandidate newHc; - HnswPtrStore(base, newHc.element, element); + HnswPtrStore(base, newHc.element, newElement); newHc.distance = hc->distance; if (neighbors->length < lm)