Fix warnings
CI / build-and-analyze (push) Successful in 1m28s

This commit is contained in:
2026-09-22 19:02:48 +03:00
parent bb5e4eeaa9
commit 1b26f332f9
+2 -2
View File
@@ -63,7 +63,7 @@ static size_t firstIndex(StrView *view, char symbol) {
static int split(StrView *view, StrView *prefix, char delim) { static int split(StrView *view, StrView *prefix, char delim) {
size_t position; size_t position;
if ((position = firstIndex(view, delim)) == -1) if ((position = firstIndex(view, delim)) == (size_t)-1)
return 0; return 0;
prefix->data = view->data; prefix->data = view->data;
@@ -179,7 +179,7 @@ int CgeConfFromCb(CgeConfIO *io, CgeConfCb callback, void *user) {
StrView view; StrView view;
while ((view.size = readLine(io, buffer, MAX_LINE))) { while ((view.size = readLine(io, buffer, MAX_LINE))) {
if (view.size == -1) if (view.size == (size_t)-1)
return 0; return 0;
view.data = buffer; view.data = buffer;
parseLine(&view, callback, user); parseLine(&view, callback, user);