提交 f6cd94d7 编写于 作者: M Minglei Jin

tRealloc: fix type void * conversion

上级 de85dea5
......@@ -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_*/
\ No newline at end of file
#endif /*_TD_UTIL_TREALLOC_H_*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册