From abad3d81cc2ffb45cb227c2e1bd5c1fbd53ad30d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 25 Apr 2024 19:51:47 -0700 Subject: [PATCH] Added comment [skip ci] --- src/ivfflat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ivfflat.h b/src/ivfflat.h index cce2d13..10b4d91 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) {