Skip to content

Commit d22b787

Browse files
authored
Merge pull request #611 from sysprog21/refine-map
Improve red-black tree map implementation
2 parents 4b61b26 + 40820d8 commit d22b787

File tree

4 files changed

+904
-235
lines changed

4 files changed

+904
-235
lines changed

src/breakpoint.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
static inline int cmp(const void *arg0, const void *arg1)
1313
{
1414
riscv_word_t *a = (riscv_word_t *) arg0, *b = (riscv_word_t *) arg1;
15-
return (*a < *b) ? _CMP_LESS : (*a > *b) ? _CMP_GREATER : _CMP_EQUAL;
15+
return (*a < *b) ? MAP_CMP_LESS
16+
: (*a > *b) ? MAP_CMP_GREATER
17+
: MAP_CMP_EQUAL;
1618
}
1719

1820
breakpoint_map_t breakpoint_map_new()

0 commit comments

Comments
 (0)