fix:compile error
This commit is contained in:
parent
4d4cc5e4d7
commit
9a8eff2a0e
|
@ -432,7 +432,7 @@ static FORCE_INLINE int32_t tDecodeBinaryAlloc(SDecoder* pCoder, void** val, uin
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FORCE_INLINE int32_t tDecodeBinaryAlloc32(SDecoder* pCoder, uint8_t** val, uint32_t* len) {
|
static FORCE_INLINE int32_t tDecodeBinaryAlloc32(SDecoder* pCoder, void** val, uint32_t* len) {
|
||||||
uint32_t length = 0;
|
uint32_t length = 0;
|
||||||
if (tDecodeU32v(pCoder, &length) < 0) return -1;
|
if (tDecodeU32v(pCoder, &length) < 0) return -1;
|
||||||
if (length) {
|
if (length) {
|
||||||
|
|
|
@ -8707,7 +8707,7 @@ int32_t tDecodeSTqOffsetVal(SDecoder *pDecoder, STqOffsetVal *pOffsetVal) {
|
||||||
if (offsetVersion >= TQ_OFFSET_VERSION) {
|
if (offsetVersion >= TQ_OFFSET_VERSION) {
|
||||||
if (tDecodeI8(pDecoder, &pOffsetVal->primaryKey.type) < 0) return -1;
|
if (tDecodeI8(pDecoder, &pOffsetVal->primaryKey.type) < 0) return -1;
|
||||||
if (IS_VAR_DATA_TYPE(pOffsetVal->primaryKey.type)){
|
if (IS_VAR_DATA_TYPE(pOffsetVal->primaryKey.type)){
|
||||||
if (tDecodeBinaryAlloc32(pDecoder, &pOffsetVal->primaryKey.pData, &pOffsetVal->primaryKey.nData) < 0) return -1;
|
if (tDecodeBinaryAlloc32(pDecoder, (void**)&pOffsetVal->primaryKey.pData, &pOffsetVal->primaryKey.nData) < 0) return -1;
|
||||||
} else {
|
} else {
|
||||||
if (tDecodeI64(pDecoder, &pOffsetVal->primaryKey.val) < 0) return -1;
|
if (tDecodeI64(pDecoder, &pOffsetVal->primaryKey.val) < 0) return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue