diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index 658f2b3e5b6ef52c0c7ff894346a5c6b7b1cae70..a429a52775fbf7476b7060dae6913f7bf9337594 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -352,7 +352,7 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) { pBt = ((SBtreeZeroPageArg *)arg)->pBt; pPage->pPageHdr = (SPageHdr *)pPage->pData; - pPage->aCellIdx = (u16 *)(&(pPage->pPageHdr[1])); + pPage->aCellIdx = (u8 *)(&(pPage->pPageHdr[1])); // Init the page header pPage->pPageHdr->flags = flags; @@ -384,7 +384,7 @@ static int tdbBtreeInitPage(SPage *pPage, void *arg) { pBt = (SBTree *)arg; pPage->pPageHdr = (SPageHdr *)pPage->pData; - pPage->aCellIdx = (u16 *)(&(pPage->pPageHdr[1])); + pPage->aCellIdx = (u8 *)(&(pPage->pPageHdr[1])); TDB_BTREE_ASSERT_FLAG(pPage->pPageHdr->flags); diff --git a/source/libs/tdb/src/inc/tdbPage.h b/source/libs/tdb/src/inc/tdbPage.h index 7ff1f07c2e4b049ff831164a88cd4a28ac2520bb..bb82f39acd63125cad42446a6b6cae054bcb4b4c 100644 --- a/source/libs/tdb/src/inc/tdbPage.h +++ b/source/libs/tdb/src/inc/tdbPage.h @@ -44,7 +44,7 @@ struct SPage { SPgid pgid; SPageHdr *pPageHdr; SPageFtr *pPageFtr; - u16 *aCellIdx; + u8 *aCellIdx; u8 *pFreeStart; u8 *pFreeEnd; int kLen;