diff --git a/src/common/inc/tdataformat.h b/src/common/inc/tdataformat.h index 54e9521469483ca5ec0ee382827292903699e9f1..149f90fc1fb1e778d05234370b5823708defe357 100644 --- a/src/common/inc/tdataformat.h +++ b/src/common/inc/tdataformat.h @@ -557,8 +557,8 @@ static FORCE_INLINE int tdAddColToKVRow(SKVRowBuilder *pBuilder, int16_t colId, pBuilder->nCols++; - void *jumpType = value; - if(isJumpJsonVType) jumpType = value + CHAR_BYTES; + char *jumpType = value; + if(isJumpJsonVType) jumpType += CHAR_BYTES; int tlen = IS_VAR_DATA_TYPE(type) ? varDataTLen(jumpType) : TYPE_BYTES[type]; if (tlen > pBuilder->alloc - pBuilder->size) { while (tlen > pBuilder->alloc - pBuilder->size) {