aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-12-17 19:26:38 -0800
committerBruce Hill <bruce@bruce-hill.com>2020-12-17 19:26:38 -0800
commitb37359b4503d447457646e8f8e01810b6525bd56 (patch)
tree4b2c7aee6dc9a6ae7a89188d500a645b2f9e311e
parent14ae16d9871188af0a663d3f5d101e802dbdef64 (diff)
Cleanup
-rw-r--r--viz.c2
1 files changed, 1 insertions, 1 deletions
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));