mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 00:26:55 +08:00
Added casting [skip ci]
This commit is contained in:
@@ -630,7 +630,7 @@ intvec_l2_norm(PG_FUNCTION_ARGS)
|
|||||||
|
|
||||||
/* Auto-vectorized */
|
/* Auto-vectorized */
|
||||||
for (int i = 0; i < a->dim; i++)
|
for (int i = 0; i < a->dim; i++)
|
||||||
norm += ax[i] * ax[i];
|
norm += (int) ax[i] * (int) ax[i];
|
||||||
|
|
||||||
PG_RETURN_FLOAT8(sqrt((double) norm));
|
PG_RETURN_FLOAT8(sqrt((double) norm));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user