From 3dcfba36e4294489b236ddf50fff6a6f4acfec3d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 13 Aug 2026 16:16:46 -0700 Subject: [PATCH] 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 */