diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index 933a65131b62bf81655be59099755294bcaad694..9770da49acf70fdc339ee5b6497ac213602e3f76 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)))) {