Fixing equals functions of list and intervalheap

This commit is contained in:
Leonardo committed 2020-03-12 14:05:30 -03:00
1 parent 0c8e12ce30
commit 101b839801
3 files changed
+12 -4

No files matched your search

+3 -3
View File
@@ -798,11 +798,11 @@ struct cmc_callbacks_intervalheap
V element1 = _heap1_->buffer[i / 2].data[i % 2]; \
V element2 = _heap2_->buffer[i / 2].data[i % 2]; \
\
if (_heap1_->f_val->cmp(element1, element2) == 0) \
return true; \
if (_heap1_->f_val->cmp(element1, element2) != 0) \
return false; \
} \
\
return false; \
return true; \
} \
\
struct cmc_string PFX##_to_string(struct SNAME *_heap_) \
+1 -1
View File
@@ -867,7 +867,7 @@ struct cmc_callbacks_list
return false; \
} \
\
return false; \
return true; \
} \
\
struct cmc_string PFX##_to_string(struct SNAME *_list_) \