From 527f167f2e113ec560fa7a4053ed27a940b96714 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 30 Oct 2024 08:29:33 +0100 Subject: Update mlib --- src/main.c | 5 ++--- vendor/mlib | 2 +- 2 files changed, 3 insertions(+), 4 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') { diff --git a/vendor/mlib b/vendor/mlib index 5dbf53a..045f4bb 160000 --- a/vendor/mlib +++ b/vendor/mlib @@ -1 +1 @@ -Subproject commit 5dbf53a1c512f9163744874e3d502e9f9e2808da +Subproject commit 045f4bb5b1767140c4f6cfe2d2002553925c4205 -- cgit v1.2.3