From cbcf773962ad5b189f53739529f158b37c481aee Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 5 Aug 2021 15:05:14 +0800 Subject: [PATCH] fix compile error --- src/tsdb/src/tsdbMeta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index 3fb5739641..fca1b17ba9 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -1251,7 +1251,7 @@ static int tsdbEncodeTable(void **buf, STable *pTable) { tlen += taosEncodeFixedU64(buf, TABLE_SUID(pTable)); tlen += tdEncodeKVRow(buf, pTable->tagVal); } else { - tlen += taosEncodeFixedU8(buf, taosArrayGetSize(pTable->schema)); + tlen += taosEncodeFixedU8(buf, (uint8_t)taosArrayGetSize(pTable->schema)); for (int i = 0; i < taosArrayGetSize(pTable->schema); i++) { STSchema *pSchema = taosArrayGetP(pTable->schema, i); tlen += tdEncodeSchema(buf, pSchema); -- GitLab