提交 1c7f6bf2 编写于 作者: M Minglei Jin

tsdbUtil: fix compr functions

上级 2fbc6a53
...@@ -226,8 +226,8 @@ int32_t tGetBlockIdx(uint8_t *p, void *ph) { ...@@ -226,8 +226,8 @@ int32_t tGetBlockIdx(uint8_t *p, void *ph) {
} }
int32_t tCmprBlockIdx(void const *lhs, void const *rhs) { int32_t tCmprBlockIdx(void const *lhs, void const *rhs) {
SBlockIdx *lBlockIdx = *(SBlockIdx **)lhs; SBlockIdx *lBlockIdx = (SBlockIdx *)lhs;
SBlockIdx *rBlockIdx = *(SBlockIdx **)rhs; SBlockIdx *rBlockIdx = (SBlockIdx *)rhs;
if (lBlockIdx->suid < rBlockIdx->suid) { if (lBlockIdx->suid < rBlockIdx->suid) {
return -1; return -1;
...@@ -382,8 +382,8 @@ int32_t tBlockColCmprFn(const void *p1, const void *p2) { ...@@ -382,8 +382,8 @@ int32_t tBlockColCmprFn(const void *p1, const void *p2) {
// SDelIdx ====================================================== // SDelIdx ======================================================
int32_t tCmprDelIdx(void const *lhs, void const *rhs) { int32_t tCmprDelIdx(void const *lhs, void const *rhs) {
SDelIdx *lDelIdx = *(SDelIdx **)lhs; SDelIdx *lDelIdx = (SDelIdx *)lhs;
SDelIdx *rDelIdx = *(SDelIdx **)rhs; SDelIdx *rDelIdx = (SDelIdx *)rhs;
if (lDelIdx->suid < rDelIdx->suid) { if (lDelIdx->suid < rDelIdx->suid) {
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册