mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Add comment to 'unused' fields
I just guessed that these exist for future extendability.
This commit is contained in:
committed by
Andrew Kane
parent
78e5bcf229
commit
b8bdf317f0
@@ -39,7 +39,7 @@ typedef struct HalfVector
|
||||
{
|
||||
int32 vl_len_; /* varlena header (do not touch directly!) */
|
||||
int16 dim; /* number of dimensions */
|
||||
int16 unused;
|
||||
int16 unused; /* reserved for future use, always zero */
|
||||
half x[FLEXIBLE_ARRAY_MEMBER];
|
||||
} HalfVector;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ typedef struct SparseVector
|
||||
int32 vl_len_; /* varlena header (do not touch directly!) */
|
||||
int32 dim; /* number of dimensions */
|
||||
int32 nnz; /* number of non-zero elements */
|
||||
int32 unused;
|
||||
int32 unused; /* reserved for future use, always zero */
|
||||
int32 indices[FLEXIBLE_ARRAY_MEMBER];
|
||||
} SparseVector;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user