From 1b26f332f998b6cf4d629e5584b66b3425b40319 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Tue, 22 Sep 2026 19:02:48 +0300 Subject: [PATCH] Fix warnings --- Conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Conf.c b/Conf.c index 6e5d60c..93eb125 100644 --- a/Conf.c +++ b/Conf.c @@ -63,7 +63,7 @@ static size_t firstIndex(StrView *view, char symbol) { static int split(StrView *view, StrView *prefix, char delim) { size_t position; - if ((position = firstIndex(view, delim)) == -1) + if ((position = firstIndex(view, delim)) == (size_t)-1) return 0; prefix->data = view->data; @@ -179,7 +179,7 @@ int CgeConfFromCb(CgeConfIO *io, CgeConfCb callback, void *user) { StrView view; while ((view.size = readLine(io, buffer, MAX_LINE))) { - if (view.size == -1) + if (view.size == (size_t)-1) return 0; view.data = buffer; parseLine(&view, callback, user);