1
0
mirror of https://github.com/pgvector/pgvector.git synced 2026-10-23 10:48:54 +03:00

Fixed conversion warnings with pd_lower [skip ci]

This commit is contained in:
Andrew Kane
2026-08-14 07:14:39 -07:00
parent 8c1aa16875
commit 6e398f928f
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ CreateMetaPage(HnswBuildState * buildstate)
metap->entryLevel = -1;
metap->insertPage = InvalidBlockNumber;
((PageHeader) page)->pd_lower =
((char *) metap + sizeof(HnswMetaPageData)) - (char *) page;
(LocationIndex) (((char *) metap + sizeof(HnswMetaPageData)) - (char *) page);
MarkBufferDirty(buf);
UnlockReleaseBuffer(buf);

View File

@@ -500,7 +500,7 @@ CreateMetaPage(Relation index, int dimensions, int lists, ForkNumber forkNum)
metap->dimensions = (uint16) dimensions;
metap->lists = (uint16) lists;
((PageHeader) page)->pd_lower =
((char *) metap + sizeof(IvfflatMetaPageData)) - (char *) page;
(LocationIndex) (((char *) metap + sizeof(IvfflatMetaPageData)) - (char *) page);
IvfflatCommitBuffer(buf, state);
}