From 5da3bdf98e8815ee8ff741ed40ac6ee0b66e7b1f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 29 Mar 2024 17:35:47 -0700 Subject: [PATCH] Fixed CI --- src/intvec.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/intvec.c b/src/intvec.c index 164b931..879a369 100644 --- a/src/intvec.c +++ b/src/intvec.c @@ -227,7 +227,6 @@ intvec_out(PG_FUNCTION_ARGS) int dim = vector->dim; char *buf; char *ptr; - int n; /* * Need: @@ -251,8 +250,13 @@ intvec_out(PG_FUNCTION_ARGS) ptr++; } - n = pg_ltoa(vector->x[i], ptr); - ptr += n; +#if PG_VERSION_NUM >= 140000 + ptr += pg_ltoa(vector->x[i], ptr); +#else + pg_ltoa(vector->x[i], ptr); + while (*ptr != '\0') + ptr++; +#endif } *ptr = ']'; ptr++;