Skip to content

Commit f9d68a0

Browse files
committed
Simplified HnswLoadUnvisitedFromMemory [skip ci]
1 parent 4f8ab57 commit f9d68a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/hnswutils.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,13 +749,12 @@ HnswLoadUnvisitedFromMemory(char *base, HnswElement element, HnswUnvisited * unv
749749
LWLockAcquire(&element->lock, LW_SHARED);
750750
memcpy(neighborhoodData, neighborhood, neighborhoodSize);
751751
LWLockRelease(&element->lock);
752-
neighborhood = neighborhoodData;
753752

754753
*unvisitedLength = 0;
755754

756-
for (int i = 0; i < neighborhood->length; i++)
755+
for (int i = 0; i < neighborhoodData->length; i++)
757756
{
758-
HnswCandidate *hc = &neighborhood->items[i];
757+
HnswCandidate *hc = &neighborhoodData->items[i];
759758
bool found;
760759

761760
AddToVisited(base, v, hc->element, NULL, &found);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy