From 9c125fe905241ca54e47b1be3322ae099c04f8b9 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 13 Dec 2024 17:21:14 +0000 Subject: [PATCH] common: fix all compiler warnings --- common/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }