From 7335a122dbcb5cab3aad2287cb40598e2842a486 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 8 Jun 2023 23:02:03 -0700 Subject: [PATCH] Added comments [skip ci] --- src/vector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector.c b/src/vector.c index 423c2ba..e053ad6 100644 --- a/src/vector.c +++ b/src/vector.c @@ -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);