From d4d504cc88db57bef47a3d8e60390a3a20453b23 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Sun, 5 Dec 2021 21:54:39 +0800 Subject: [PATCH] fix windows compilation error by add forceful convertion --- src/client/src/tscParseOpenTSDB.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscParseOpenTSDB.c b/src/client/src/tscParseOpenTSDB.c index 71ac4d8481..82c554ee0a 100644 --- a/src/client/src/tscParseOpenTSDB.c +++ b/src/client/src/tscParseOpenTSDB.c @@ -127,7 +127,7 @@ static int32_t parseTelnetTimeStamp(TAOS_SML_KV **pTS, int *num_kvs, const char (*pTS)->key = tcalloc(sizeof(key) + TS_ESCAPE_CHAR_SIZE, 1); memcpy((*pTS)->key, key, sizeof(key)); - addEscapeCharToString((*pTS)->key, strlen(key)); + addEscapeCharToString((*pTS)->key, (int32_t)strlen(key)); *num_kvs += 1; *index = cur + 1; -- GitLab