From f2b204030609bf8e415b102a4057020aacc4d8b0 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 10 Oct 2024 01:29:34 -0700 Subject: [PATCH] Fixed assertion --- src/hnsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnsw.c b/src/hnsw.c index 6cb2deb..632fa75 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -210,7 +210,7 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, *indexCorrelation = costs.indexCorrelation; *indexPages = costs.numIndexPages; - Assert(*indexStartupCost > 0); + Assert(*indexStartupCost >= 0); Assert(*indexTotalCost >= *indexStartupCost); }