Browse Source

minor enhancement

tree_alloc
Thomas Johnson 1 year ago
parent
commit
8dad1fdead
  1. 2
      tree_alloc.c

2
tree_alloc.c

@ -23,7 +23,7 @@ void debug_print_tree(int indent, void *p) {
node->parent->color == COLOR_RED));
debug_print_tree(indent + 1, node->left);
for (int ii = 0; ii < indent; ii++) { printf(" "); }
if (node->color == COLOR_RED) { printf("\e[31m"); }
if (node->color == COLOR_RED) { printf(bad ? "\e[30m]" : "\e[31m"); }
if (bad) { printf("\e[43m"); }
printf("%p %lu\n", node, node->size);
if (node->color == COLOR_RED) { printf("\e[37m"); }

Loading…
Cancel
Save