From b37359b4503d447457646e8f8e01810b6525bd56 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 17 Dec 2020 19:26:38 -0800 Subject: Cleanup --- viz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viz.c b/viz.c index a7148f5..5e4e4d8 100644 --- a/viz.c +++ b/viz.c @@ -128,7 +128,7 @@ static void _visualize_matches(match_node_t *firstmatch, int depth, const char * static void _visualize_patterns(match_t *m) { - if (m->op->op == VM_REF && strcmp(m->op->args.s, "pattern") == 0) { + if (m->op->op == VM_REF && streq(m->op->args.s, "pattern")) { m = m->child; match_node_t first = {.m = m}; _visualize_matches(&first, 0, m->start, (size_t)(m->end - m->start)); -- cgit v1.2.3