@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user