aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3f96758..6086a9c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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') {