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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user