pgvector.git / summary / log / commit / refs

commit    5cf75c0b837ed119285dafe0d8a4fda1b9f31b38
Author:   Andrew Kane <andrew@ankane.org>
Date:     Mon Apr 15 22:50:59 2024 +0000

    Added comment [skip ci]


src/sparsevec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sparsevec.c b/src/sparsevec.c index b0c0055c..f8444a06 100644 --- a/src/sparsevec.c +++ b/src/sparsevec.c @@ -887,6 +887,7 @@ sparsevec_l2_normalize(PG_FUNCTION_ARGS) zeros++; } + /* In the unlikely event there are zeros */ if (zeros > 0) { SparseVector *newResult = InitSparseVector(result->dim, result->nnz - zeros); [parent: 5215c289231f]