From 94443ebb527c9b16bdfbe7b2bc0b659d262ba826 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 2 Nov 2021 21:15:54 -0700 Subject: [PATCH] gvconfig: squash some further -Wsign-conversion warnings --- lib/gvc/gvconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 86a9b630f..de28d600f 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -552,7 +552,7 @@ static void config_rescan(GVC_t *gvc, char *config_path) void gvconfig(GVC_t * gvc, boolean rescan) { #ifdef ENABLE_LTDL - int sz, rc; + int rc; struct stat config_st, libdir_st; FILE *f = NULL; char *config_text = NULL; @@ -609,7 +609,7 @@ void gvconfig(GVC_t * gvc, boolean rescan) } else { config_text = gmalloc((size_t)config_st.st_size + 1); - sz = fread(config_text, 1, config_st.st_size, f); + size_t sz = fread(config_text, 1, (size_t)config_st.st_size, f); if (sz == 0) { agerr(AGERR, "%s read error.\n", gvc->config_path); } -- 2.40.0