[TD-4352]fix compile error

This commit is contained in:
lichuang 2021-06-22 22:30:19 +08:00
parent 64ade71d75
commit 3237ee5c5b
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ static int tsdbCompactMetaFile(STsdbRepo *pRepo, STsdbFS *pfs, SMFile *pMFile) {
}
if (pRecord->size > maxBufSize) {
maxBufSize = pRecord->size;
void* tmp = realloc(pBuf, maxBufSize);
void* tmp = realloc(pBuf, (size_t)maxBufSize);
if (tmp == NULL) {
break;
}