From 11e82045d994692a73b0f472ca2ba9119ec30ca1 Mon Sep 17 00:00:00 2001 From: slguan Date: Sun, 9 Feb 2020 22:27:15 +0800 Subject: [PATCH] for windows compile --- src/client/src/tscFunctionImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscFunctionImpl.c b/src/client/src/tscFunctionImpl.c index e02e0b3ceb..248b197d52 100644 --- a/src/client/src/tscFunctionImpl.c +++ b/src/client/src/tscFunctionImpl.c @@ -3194,7 +3194,7 @@ static void diff_function(SQLFunctionCtx *pCtx) { GET_RES_INFO(pCtx)->numOfRes += forwardStep; pCtx->aOutputBuf += forwardStep * pCtx->outputBytes; - pCtx->ptsOutputBuf += forwardStep * TSDB_KEYSIZE; + pCtx->ptsOutputBuf = (char*)pCtx->ptsOutputBuf + forwardStep * TSDB_KEYSIZE; } } -- GitLab