tRealloc: fix type void * conversion

This commit is contained in:
Minglei Jin 2022-07-05 11:03:09 +08:00
parent de85dea5e2
commit f6cd94d781
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ static FORCE_INLINE int32_t tRealloc(uint8_t **ppBuf, int64_t size) {
bsize *= 2;
}
pBuf = taosMemoryRealloc(*ppBuf ? (*ppBuf) - sizeof(int64_t) : *ppBuf, bsize + sizeof(int64_t));
pBuf = (uint8_t *)taosMemoryRealloc(*ppBuf ? (*ppBuf) - sizeof(int64_t) : *ppBuf, bsize + sizeof(int64_t));
if (pBuf == NULL) {
code = TSDB_CODE_OUT_OF_MEMORY;
goto _exit;
@ -61,4 +61,4 @@ static FORCE_INLINE void tFree(uint8_t *pBuf) {
}
#endif
#endif /*_TD_UTIL_TREALLOC_H_*/
#endif /*_TD_UTIL_TREALLOC_H_*/