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 --- irc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index dd36f10..704caa6 100644 --- a/irc.c +++ b/irc.c @@ -220,7 +220,7 @@ static struct Message parse(char *line) { while (tags) { char *tag = strsep(&tags, ";"); char *key = strsep(&tag, "="); - for (size_t i = 0; i < TagCap; ++i) { + for (uint i = 0; i < TagCap; ++i) { if (strcmp(key, TagNames[i])) continue; unescape(tag); msg.tags[i] = tag; @@ -237,7 +237,7 @@ static struct Message parse(char *line) { } msg.cmd = strsep(&line, " "); - for (size_t i = 0; line && i < ParamCap; ++i) { + for (uint i = 0; line && i < ParamCap; ++i) { if (line[0] == ':') { msg.params[i] = &line[1]; break; -- cgit 1.4.1-2-gfad0