resolve compiler warning in windows
This commit is contained in:
parent
b2cd98231a
commit
c2ec729727
|
@ -157,7 +157,7 @@ typedef struct SParamInfo {
|
||||||
int32_t idx;
|
int32_t idx;
|
||||||
char type;
|
char type;
|
||||||
uint8_t timePrec;
|
uint8_t timePrec;
|
||||||
short bytes;
|
int16_t bytes;
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
} SParamInfo;
|
} SParamInfo;
|
||||||
|
|
||||||
|
|
|
@ -298,7 +298,7 @@ static int doBindParam(char* data, SParamInfo* param, TAOS_BIND* bind) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TSDB_DATA_TYPE_BINARY:
|
case TSDB_DATA_TYPE_BINARY:
|
||||||
if ((*bind->length) > param->bytes) {
|
if ((*bind->length) > (uintptr_t)param->bytes) {
|
||||||
return TSDB_CODE_TSC_INVALID_VALUE;
|
return TSDB_CODE_TSC_INVALID_VALUE;
|
||||||
}
|
}
|
||||||
size = (short)*bind->length;
|
size = (short)*bind->length;
|
||||||
|
|
|
@ -72,8 +72,8 @@ DLL_EXPORT void taos_close(TAOS *taos);
|
||||||
typedef struct TAOS_BIND {
|
typedef struct TAOS_BIND {
|
||||||
int buffer_type;
|
int buffer_type;
|
||||||
void * buffer;
|
void * buffer;
|
||||||
unsigned long buffer_length; // unused
|
uintptr_t buffer_length; // unused
|
||||||
unsigned long *length;
|
uintptr_t *length;
|
||||||
int * is_null;
|
int * is_null;
|
||||||
int is_unsigned; // unused
|
int is_unsigned; // unused
|
||||||
int * error; // unused
|
int * error; // unused
|
||||||
|
|
Loading…
Reference in New Issue