[td-13039] fix compiler error.

This commit is contained in:
Haojun Liao 2022-03-17 13:52:35 +08:00
parent 554f12db50
commit c503c00ff8
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ static bool allocBuf(SDataDispatchHandle* pDispatcher, const SInputData* pInput,
// NOTE: there are four bytes of an integer more than the required buffer space.
// struct size + data payload + length for each column + bitmap length
pBuf->allocSize = sizeof(SRetrieveTableRsp) + blockDataGetSerialMetaSize(pInput->pData) +
__ceill(blockDataGetSerialRowSize(pInput->pData) * pInput->pData->info.rows);
ceil(blockDataGetSerialRowSize(pInput->pData) * pInput->pData->info.rows);
pBuf->pData = malloc(pBuf->allocSize);
if (pBuf->pData == NULL) {