aboutsummaryrefslogtreecommitdiff
path: root/grammar.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-09 23:43:59 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-09 23:43:59 -0800
commitaa91728a082cde784e01078944dc39e6df0877fa (patch)
tree72b187de913d139f4ba225ec88e635f01cca9f17 /grammar.c
parent03c790d5b61ecc07a34e6d113a5b434b72c835fe (diff)
Replaced (void*) with (match_t*) in struct def
Diffstat (limited to 'grammar.c')
-rw-r--r--grammar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar.c b/grammar.c
index aa75522..5284225 100644
--- a/grammar.c
+++ b/grammar.c
@@ -94,7 +94,7 @@ void push_backref(grammar_t *g, const char *name, match_t *capture)
op->start = capture->start;
op->end = capture->end;
op->len = -1; // TODO: maybe calculate this?
- op->args.backref = (void*)capture;
+ op->args.backref = capture;
g->backrefs[i].op = op;
}