mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 23:56:55 +08:00
Added todo [skip ci]
This commit is contained in:
@@ -740,6 +740,7 @@ vector_to_halfvec(PG_FUNCTION_ARGS)
|
|||||||
for (int i = 0; i < vec->dim; i++)
|
for (int i = 0; i < vec->dim; i++)
|
||||||
{
|
{
|
||||||
result->x[i] = Float4ToHalfUnchecked(vec->x[i]);
|
result->x[i] = Float4ToHalfUnchecked(vec->x[i]);
|
||||||
|
/* TODO Better error for overflow */
|
||||||
CheckElement(result->x[i]);
|
CheckElement(result->x[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user