From b9f14871bb3166e22b6aac866ef4b7339a131986 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Wed, 11 Aug 2021 07:51:37 +0800 Subject: [PATCH] fix windows/mac compile error. --- src/kit/taosdemo/taosdemo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index de6043f3cf..9449b229b4 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -296,7 +296,7 @@ typedef struct SSuperTable_S { char* sampleDataBuf; #if STMT_IFACE_ENABLED == 1 - void *sampleBindArray; + char* sampleBindArray; #endif //int sampleRowCount; //int sampleUsePos; @@ -7309,7 +7309,7 @@ static int parseSampleFileToStmt(SSuperTable *stbInfo, uint32_t timePrec) stbInfo->sampleBindArray = calloc(1, sizeof(char *) * MAX_SAMPLES_ONCE_FROM_FILE); if (stbInfo->sampleBindArray == NULL) { errorPrint("%s() LN%d, Failed to allocate %"PRIu64" bind array buffer\n", - __func__, __LINE__, sizeof(char *) * MAX_SAMPLES_ONCE_FROM_FILE); + __func__, __LINE__, (uint64_t)sizeof(char *) * MAX_SAMPLES_ONCE_FROM_FILE); return -1; } -- GitLab