Added comment [skip ci]

This commit is contained in:
Andrew Kane
2024-04-15 15:50:59 -07:00
parent 5215c28923
commit 5cf75c0b83

View File

@@ -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);