提交 b9f14871 编写于 作者: S Shuduo Sang 提交者: sangshuduo

fix windows/mac compile error.

上级 a785f372
...@@ -296,7 +296,7 @@ typedef struct SSuperTable_S { ...@@ -296,7 +296,7 @@ typedef struct SSuperTable_S {
char* sampleDataBuf; char* sampleDataBuf;
#if STMT_IFACE_ENABLED == 1 #if STMT_IFACE_ENABLED == 1
void *sampleBindArray; char* sampleBindArray;
#endif #endif
//int sampleRowCount; //int sampleRowCount;
//int sampleUsePos; //int sampleUsePos;
...@@ -7309,7 +7309,7 @@ static int parseSampleFileToStmt(SSuperTable *stbInfo, uint32_t timePrec) ...@@ -7309,7 +7309,7 @@ static int parseSampleFileToStmt(SSuperTable *stbInfo, uint32_t timePrec)
stbInfo->sampleBindArray = calloc(1, sizeof(char *) * MAX_SAMPLES_ONCE_FROM_FILE); stbInfo->sampleBindArray = calloc(1, sizeof(char *) * MAX_SAMPLES_ONCE_FROM_FILE);
if (stbInfo->sampleBindArray == NULL) { if (stbInfo->sampleBindArray == NULL) {
errorPrint("%s() LN%d, Failed to allocate %"PRIu64" bind array buffer\n", 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; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册