From: Matthew Fernandez Date: Sat, 15 May 2021 00:42:05 +0000 (-0700) Subject: squash another -Wsign-conversion warning in core_loadimage_ps X-Git-Tag: 2.47.3~30^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3891484f1182b7ac6235bc88bccc8f9deb001315;p=graphviz squash another -Wsign-conversion warning in core_loadimage_ps us->datasize and statbuf.st_size are equal at this point, so we may as well use the correctly typed one of them. --- diff --git a/plugin/core/gvloadimage_core.c b/plugin/core/gvloadimage_core.c index 32845f7b1..eb6334ddb 100644 --- a/plugin/core/gvloadimage_core.c +++ b/plugin/core/gvloadimage_core.c @@ -181,7 +181,7 @@ static void core_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, boolean fill fstat(fd, &statbuf); us->datasize = (size_t)statbuf.st_size; #ifdef HAVE_SYS_MMAN_H - us->data = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0); + us->data = mmap(0, us->datasize, PROT_READ, MAP_SHARED, fd, 0); if (us->data == MAP_FAILED) us->data = NULL; #else