diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 08:29:33 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 08:29:33 +0100 |
commit | 527f167f2e113ec560fa7a4053ed27a940b96714 (patch) | |
tree | ab377bd0855ce7096064fd99cc463542bb3a8875 /src | |
parent | 10f5fafb6d2880792d7cdc7f99fda8a0e36b36c1 (diff) |
Update mlib
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -260,15 +260,14 @@ pattern_comp(u8view_t pat) /* Find the right delimeter, which is optional for the last operator */ - /* TODO: Change u8view_t.len to ptrdiff_t and use -1 here */ - u8view_t re = {pat.p, (size_t)-1}; + u8view_t re = {pat.p, -1}; while ((w = ucsnext(&ch, &pat)) != 0) { if (ch == rdelim) { re.len = pat.p - re.p - w; break; } } - if (re.len == (size_t)-1) + if (re.len == -1) re.len = pat.p - re.p; if (re.len == 0) { if (op.c != 'h') { |