mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 08:36:54 +08:00
Added comment [skip ci]
This commit is contained in:
@@ -943,6 +943,7 @@ sparsevec_cmp_internal(SparseVector * a, SparseVector * b)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check <= dim since indices start at 1 */
|
||||||
if (a->nnz < b->nnz && b->indices[nnz] <= a->dim)
|
if (a->nnz < b->nnz && b->indices[nnz] <= a->dim)
|
||||||
return bx[nnz] < 0 ? 1 : -1;
|
return bx[nnz] < 0 ? 1 : -1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user