提交 c2ec7297 编写于 作者: B Bomin Zhang

resolve compiler warning in windows

上级 b2cd9823
......@@ -157,7 +157,7 @@ typedef struct SParamInfo {
int32_t idx;
char type;
uint8_t timePrec;
short bytes;
int16_t bytes;
uint32_t offset;
} SParamInfo;
......
......@@ -298,7 +298,7 @@ static int doBindParam(char* data, SParamInfo* param, TAOS_BIND* bind) {
break;
case TSDB_DATA_TYPE_BINARY:
if ((*bind->length) > param->bytes) {
if ((*bind->length) > (uintptr_t)param->bytes) {
return TSDB_CODE_TSC_INVALID_VALUE;
}
size = (short)*bind->length;
......
......@@ -72,8 +72,8 @@ DLL_EXPORT void taos_close(TAOS *taos);
typedef struct TAOS_BIND {
int buffer_type;
void * buffer;
unsigned long buffer_length; // unused
unsigned long *length;
uintptr_t buffer_length; // unused
uintptr_t *length;
int * is_null;
int is_unsigned; // unused
int * error; // unused
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册