From 700b5d587015faa396b1149525b084960d6524c3 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Sat, 15 Feb 2020 22:19:55 -0500 Subject: Replace small integers in size_t with uint --- edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'edit.c') diff --git a/edit.c b/edit.c index 997feed..a0ec333 100644 --- a/edit.c +++ b/edit.c @@ -78,7 +78,7 @@ static struct { size_t len; } tab; -static void tabComplete(size_t id) { +static void tabComplete(uint id) { if (!tab.len) { tab.pos = pos; while (tab.pos && buf[tab.pos - 1] != L' ') tab.pos--; @@ -142,7 +142,7 @@ static void tabReject(void) { tab.len = 0; } -void edit(size_t id, enum Edit op, wchar_t ch) { +void edit(uint id, enum Edit op, wchar_t ch) { size_t init = pos; switch (op) { break; case EditHead: pos = 0; -- cgit 1.4.1-2-gfad0