Merge pull request #2934 from taosdata/patch/td-1037
resolve compiler warning in windows
This commit is contained in:
commit
ef335b2ce5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue