diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index e040843b0ef3a7105a0a20caa0fa100f8064a28d..9263cb11706de96aee0bfd82fb901d919a86a285 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -168,11 +168,10 @@ bool serializeExprListToVariant(SArray* pList, tVariant **dst, int16_t colType) } type = colType; - SBufferWriter bw = tbufInitWriter( NULL, false ); tbufEnsureCapacity(&bw, 512); - int32_t size = pList->size; + int32_t size = (int32_t)(pList->size); tbufWriteUint32(&bw, type); tbufWriteInt32(&bw, size);