Use consistent style [skip ci]

This commit is contained in:
Andrew Kane
2025-07-27 18:19:28 -07:00
parent 3be8693c13
commit 5b8b68ba1d

View File

@@ -916,19 +916,17 @@ vector_concat(PG_FUNCTION_ARGS)
Vector *b = PG_GETARG_VECTOR_P(1);
Vector *result;
int dim = a->dim + b->dim;
int dim_a = a->dim;
int dim_b = b->dim;
CheckDim(dim);
result = InitVector(dim);
/* Auto-vectorized */
for (int i = 0; i < dim_a; i++)
for (int i = 0, imax = a->dim; i < imax; i++)
result->x[i] = a->x[i];
/* Auto-vectorized */
for (int i = 0; i < dim_b; i++)
result->x[i + dim_a] = b->x[i];
for (int i = 0, imax = b->dim, start = a->dim; i < imax; i++)
result->x[i + start] = b->x[i];
PG_RETURN_POINTER(result);
}