mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 15:46:54 +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];
|
double v = statevalues[i + 1] + x[i];
|
||||||
|
|
||||||
|
/* Check for overflow */
|
||||||
if (isinf(v))
|
if (isinf(v))
|
||||||
{
|
{
|
||||||
pfree(statedatums);
|
pfree(statedatums);
|
||||||
@@ -974,6 +975,7 @@ vector_combine(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
double v = statevalues1[i] + statevalues2[i];
|
double v = statevalues1[i] + statevalues2[i];
|
||||||
|
|
||||||
|
/* Check for overflow */
|
||||||
if (isinf(v))
|
if (isinf(v))
|
||||||
{
|
{
|
||||||
pfree(statedatums);
|
pfree(statedatums);
|
||||||
|
|||||||
Reference in New Issue
Block a user