From 768cd5d5d519a6bb0438a71a2205755dd7d70e66 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 8 Jun 2023 23:07:25 -0700 Subject: [PATCH] Default closest center to 0 --- src/ivfbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfbuild.c b/src/ivfbuild.c index ac1239a..b6b24e3 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -147,7 +147,7 @@ AddTupleToSort(Relation index, ItemPointer tid, Datum *values, IvfflatBuildState { double distance; double minDistance = DBL_MAX; - int closestCenter = -1; + int closestCenter = 0; VectorArray centers = buildstate->centers; TupleTableSlot *slot = buildstate->slot; int i;