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