From 0a47da823af4275c00d6718fecfe2499b432067a Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 22 Feb 2022 14:26:23 +0800 Subject: [PATCH] fix error in windows --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 0e1cf3a883..88f25824b5 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -362,7 +362,7 @@ SSDataBlock* createOutputBuf(SExprInfo* pExpr, int32_t numOfOutput, int32_t numO qError("size is too large, failed to allocate column buffer for output buffer"); tmp = 128*1024*1024; } - int32_t size = MAX(tmp, minSize); + int32_t size = (int32_t)MAX(tmp, minSize); idata.pData = calloc(1, size); // at least to hold a pointer on x64 platform if (idata.pData == NULL) { qError("failed to allocate column buffer for output buffer"); -- GitLab