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);