From 8c41658f8fbf61595fbbc54387881b52773816fd Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 20 Dec 2021 10:11:21 +0800 Subject: [PATCH] fix warning in windows --- src/client/src/tscUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index b053596eea..d9207411bd 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -5513,7 +5513,7 @@ int parseJsontoTagData(char* json, SKVRowBuilder* kvRowBuilder, char* errMsg, in *tagVal = jsonType2DbType(0, item->type); // type char* tagData = POINTER_SHIFT(tagVal,CHAR_BYTES); if (!taosMbsToUcs4(jsonValue, strlen(jsonValue), varDataVal(tagData), - strlen(jsonValue) * TSDB_NCHAR_SIZE, &outLen)) { + (int32_t)(strlen(jsonValue) * TSDB_NCHAR_SIZE), &outLen)) { tscError("json string error:%s|%s", strerror(errno), jsonValue); retCode = tscSQLSyntaxErrMsg(errMsg, "serizelize json error", NULL); free(tagVal); -- GitLab