diff --git a/common/file.c b/common/file.c index ec003f4..35769c3 100644 --- a/common/file.c +++ b/common/file.c @@ -12,7 +12,7 @@ static enum ivy_status file_readline( } 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; }