Add comment to 'unused' fields

I just guessed that these exist for future extendability.
This commit is contained in:
Heikki Linnakangas
2024-04-23 14:53:12 +03:00
committed by Andrew Kane
parent 78e5bcf229
commit b8bdf317f0
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;