fix: windows compile issue

This commit is contained in:
dapan1121 2024-06-11 08:46:11 +08:00
parent 3405da9b07
commit 6b66bfdd28
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ char* gStmtStatusStr[] = {"unknown", "init", "prepare", "settbname", "settag
static FORCE_INLINE int32_t stmtAllocQNodeFromBuf(STableBufInfo* pTblBuf, void** pBuf) {
if (pTblBuf->buffOffset < pTblBuf->buffSize) {
*pBuf = pTblBuf->pCurBuff + pTblBuf->buffOffset;
*pBuf = (char*)pTblBuf->pCurBuff + pTblBuf->buffOffset;
pTblBuf->buffOffset += pTblBuf->buffUnit;
} else if (pTblBuf->buffIdx < taosArrayGetSize(pTblBuf->pBufList)) {
pTblBuf->pCurBuff = taosArrayGetP(pTblBuf->pBufList, pTblBuf->buffIdx++);