8000 Improved variable name [skip ci] · postgrespro/pgvector@4c72f91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c72f91

Browse files
committed
Improved variable name [skip ci]
1 parent 4ac86f6 commit 4c72f91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hnswutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,12 +1104,12 @@ LoadElementsForInsert(HnswNeighborArray * neighbors, Datum q, HnswCandidate * *p
11041104
* Update connections
11051105
*/
11061106
void
1107-
HnswUpdateConnection(char *base, HnswElement element, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation)
1107+
HnswUpdateConnection(char *base, HnswElement newElement, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation)
11081108
{
11091109
HnswElement hce = HnswPtrAccess(base, hc->element);
11101110
HnswCandidate newHc;
11111111

1112-
HnswPtrStore(base, newHc.element, element);
1112+
HnswPtrStore(base, newHc.element, newElement);
11131113
newHc.distance = hc->distance;
11141114

11151115
if (neighbors->length < lm)

0 commit comments

Comments
 (0)
0