From: Matthew Fernandez Date: Wed, 3 Nov 2021 03:48:25 +0000 (-0700) Subject: gvconfig: squash a -Wsign-conversion warning X-Git-Tag: 2.50.0~44^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5722c3dcfc1bd27bf82d85e0228065ff60c662a;p=graphviz gvconfig: squash a -Wsign-conversion warning --- diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 78b8789ed..57eb956fe 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -605,7 +605,7 @@ void gvconfig(GVC_t * gvc, boolean rescan) return; } else { - config_text = gmalloc(config_st.st_size + 1); + config_text = gmalloc((size_t)config_st.st_size + 1); sz = fread(config_text, 1, config_st.st_size, f); if (sz == 0) { agerr(AGERR,"%s is zero sized, or other read error.\n", gvc->config_path);