mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Removed unneeded cast [skip ci]
This commit is contained in:
@@ -646,10 +646,10 @@ intvec_cmp_internal(IntVector * a, IntVector * b)
|
|||||||
/* Check values before dimensions to be consistent with Postgres arrays */
|
/* Check values before dimensions to be consistent with Postgres arrays */
|
||||||
for (int i = 0; i < dim; i++)
|
for (int i = 0; i < dim; i++)
|
||||||
{
|
{
|
||||||
if ((int) a->x[i] < (int) b->x[i])
|
if (a->x[i] < b->x[i])
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if ((int) a->x[i] > (int) b->x[i])
|
if (a->x[i] > b->x[i])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user