Improved CreateStateDatums [skip ci]

This commit is contained in:
Andrew Kane
2026-07-27 22:09:33 -07:00
parent 1be6148eca
commit e6bd4c8acf
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@
#endif
#define STATE_DIMS(x) (ARR_DIMS(x)[0] - 1)
#define CreateStateDatums(dim) palloc_array(Datum, (dim + 1))
#define CreateStateDatums(dim) palloc_array(Datum, (dim) + 1)
/*
* Get a half from a message buffer

View File

@@ -35,7 +35,7 @@
#endif
#define STATE_DIMS(x) (ARR_DIMS(x)[0] - 1)
#define CreateStateDatums(dim) palloc_array(Datum, (dim + 1))
#define CreateStateDatums(dim) palloc_array(Datum, (dim) + 1)
#if defined(USE_TARGET_CLONES) && !defined(__FMA__)
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma")))