fix windows compile err

This commit is contained in:
dapan1121 2021-02-25 14:29:09 +08:00
parent cafe84d110
commit 848401b470
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ static int32_t taosPushLogBuffer(SLogBuff *tLogBuff, char *msg, int32_t msgLen)
if (lostLine > 0) { if (lostLine > 0) {
sprintf(tmpBuf, "...Lost %"PRId64" lines here...\n", lostLine); sprintf(tmpBuf, "...Lost %"PRId64" lines here...\n", lostLine);
tmpBufLen = strlen(tmpBuf); tmpBufLen = (int32_t)strlen(tmpBuf);
} }
if (remainSize <= msgLen || ((lostLine > 0) && (remainSize <= (msgLen + tmpBufLen)))) { if (remainSize <= msgLen || ((lostLine > 0) && (remainSize <= (msgLen + tmpBufLen)))) {