From 5f3890308bf0967c8752d7748e6880b1405672ed Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 15 Dec 2020 18:34:11 +0800 Subject: [PATCH] [TD-225] fix compiler error. --- 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 d0d0cb9e7b..35ae9e4d4c 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -2594,7 +2594,7 @@ void tscSVgroupInfoCopy(SVgroupInfo* dst, const SVgroupInfo* src) { } char* serializeTagData(STagData* pTagData, char* pMsg) { - int32_t n = strlen(pTagData->name); + int32_t n = (int32_t) strlen(pTagData->name); *(int32_t*) pMsg = htonl(n); pMsg += sizeof(n); -- GitLab