From 848401b4702b977803e63babd6c92447da112d6f Mon Sep 17 00:00:00 2001 From: dapan1121 <89396746@qq.com> Date: Thu, 25 Feb 2021 14:29:09 +0800 Subject: [PATCH] fix windows compile err --- src/util/src/tlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index 933a65131b..9770da49ac 100644 --- a/src/util/src/tlog.c +++ b/src/util/src/tlog.c @@ -574,7 +574,7 @@ static int32_t taosPushLogBuffer(SLogBuff *tLogBuff, char *msg, int32_t msgLen) if (lostLine > 0) { sprintf(tmpBuf, "...Lost %"PRId64" lines here...\n", lostLine); - tmpBufLen = strlen(tmpBuf); + tmpBufLen = (int32_t)strlen(tmpBuf); } if (remainSize <= msgLen || ((lostLine > 0) && (remainSize <= (msgLen + tmpBufLen)))) { -- GitLab