From 6b66bfdd28823bb8c00a2d0db58d6306c0a7ff42 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 11 Jun 2024 08:46:11 +0800 Subject: [PATCH] fix: windows compile issue --- source/client/src/clientStmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientStmt.c b/source/client/src/clientStmt.c index eee7452dae..d18fb23ab2 100644 --- a/source/client/src/clientStmt.c +++ b/source/client/src/clientStmt.c @@ -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++);