pgvector.git / summary / log / commit / refs
commit 3dcfba36e4294489b236ddf50fff6a6f4acfec3d
Author: Andrew Kane <andrew@ankane.org>
Date: Thu Aug 13 23:16:46 2026 +0000
Improved types for halfvec_accum and halfvec_avg [skip ci]
src/halfvec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/halfvec.c b/src/halfvec.c
index 84bfeaa8..ad149ae9 100644
--- a/src/halfvec.c
+++ b/src/halfvec.c
@@ -1108,7 +1108,7 @@ halfvec_accum(PG_FUNCTION_ARGS)
ArrayType *statearray = PG_GETARG_ARRAYTYPE_P(0);
HalfVector *newval = PG_GETARG_HALFVEC_P(1);
float8 *statevalues;
- int16 dim;
+ int dim;
bool newarr;
float8 n;
Datum *statedatums;
@@ -1169,7 +1169,7 @@ halfvec_avg(PG_FUNCTION_ARGS)
ArrayType *statearray = PG_GETARG_ARRAYTYPE_P(0);
float8 *statevalues;
float8 n;
- uint16 dim;
+ int dim;
HalfVector *result;
/* Check array before using */
[parent: 76e82d3b4668]