[TD-5505]<fix>: windows compilation error

This commit is contained in:
Ganlin Zhao 2021-07-30 11:42:56 +08:00
parent db88b17c61
commit 83b5c2a6a7
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ int32_t taosGetTimestampSec() { return (int32_t)time(NULL); }
int32_t taosParseTime(char* timestr, int64_t* time, int32_t len, int32_t timePrec, int8_t day_light) {
/* parse datatime string in with tz */
char *seg = forwardToTimeStringEnd(timestr);
int32_t seg_len = len - (seg - timestr);
int32_t seg_len = len - (int32_t)(seg - timestr);
if (strnchr(timestr, 'T', len, false) != NULL) {
return parseTimeWithTz(timestr, time, timePrec, 'T');
} else if (strnchr(timestr, ' ', len, false) != NULL &&