common: fix all compiler warnings

This commit is contained in:
2024-12-13 17:21:14 +00:00
parent 9af971c074
commit 9c125fe905

View File

@@ -12,7 +12,7 @@ static enum ivy_status file_readline(
} }
struct ivy_file *f = (struct ivy_file *)src; struct ivy_file *f = (struct ivy_file *)src;
if (!fgets(buf, count, f->f_fp)) { if (!fgets(buf, (int)count, f->f_fp)) {
return feof(f->f_fp) ? IVY_ERR_EOF : IVY_ERR_IO_FAILURE; return feof(f->f_fp) ? IVY_ERR_EOF : IVY_ERR_IO_FAILURE;
} }