fix compile error

This commit is contained in:
Hongze Cheng 2021-08-05 15:05:14 +08:00
parent 22a2a66028
commit cbcf773962
1 changed files with 1 additions and 1 deletions

View File

@ -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);