pgvector.git / summary / log / commit / refs
commit abad3d81cc2ffb45cb227c2e1bd5c1fbd53ad30d
Author: Andrew Kane <andrew@ankane.org>
Date: Fri Apr 26 02:51:47 2024 +0000
Added comment [skip ci]
src/ivfflat.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ivfflat.h b/src/ivfflat.h
index cce2d132..10b4d910 100644
--- a/src/ivfflat.h
+++ b/src/ivfflat.h
@@ -271,6 +271,8 @@ typedef IvfflatScanOpaqueData * IvfflatScanOpaque;
#define VECTOR_ARRAY_SIZE(_length, _size) (sizeof(VectorArrayData) + (_length) * MAXALIGN(_size))
+/* Use functions instead of macros to avoid double evaluation */
+
static inline Pointer
VectorArrayGet(VectorArray arr, int offset)
{
[parent: d516c9bd3f14]