mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 10:11:20 +08:00
Added comments [skip ci]
This commit is contained in:
@@ -903,6 +903,7 @@ vector_accum(PG_FUNCTION_ARGS)
|
||||
{
|
||||
double v = statevalues[i + 1] + x[i];
|
||||
|
||||
/* Check for overflow */
|
||||
if (isinf(v))
|
||||
{
|
||||
pfree(statedatums);
|
||||
@@ -974,6 +975,7 @@ vector_combine(PG_FUNCTION_ARGS)
|
||||
{
|
||||
double v = statevalues1[i] + statevalues2[i];
|
||||
|
||||
/* Check for overflow */
|
||||
if (isinf(v))
|
||||
{
|
||||
pfree(statedatums);
|
||||
|
||||
Reference in New Issue
Block a user