diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-07-17 14:05:10 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-07-17 14:05:10 -0700 |
| commit | 378e94090f5fb61b6c1e35b99e597dfca61ef7a9 (patch) | |
| tree | c8a8e2f0b278b46150315db09e603633f2e48aab /match.c | |
| parent | 0f059615786dcdeb436f7d570a6bb3fa2e621eb6 (diff) | |
Factored debug visualization into its own file
Diffstat (limited to 'match.c')
| -rw-r--r-- | match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -288,7 +288,7 @@ static match_t *match(def_t *defs, file_t *f, const char *str, pat_t *pat, bool // Temporarily add a rule that the backref name matches the // exact string of the original match (no replacements) ssize_t len = (ssize_t)(m1->end - m1->start); - pat_t *backref = new_pat(f, m1->start, m1->end, len, len, BP_STRING); + pat_t *backref = new_pat(f, m1->start, m1->end, (size_t)len, len, BP_STRING); backref->args.string = m1->start; defs2 = with_def(defs, pat->args.ref.len, pat->args.ref.name, backref); } |
