Improved types for halfvec_accum and halfvec_avg [skip ci]

This commit is contained in:
Andrew Kane committed 2026-08-13 16:16:46 -07:00
1 parent 76e82d3b46
commit 3dcfba36e4
1 file changed
+2 -2
+2 -2
View File
@@ -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 */