From: Matthew Fernandez Date: Fri, 7 Oct 2022 03:13:09 +0000 (-0700) Subject: sfio sfsync: realign 'pool' type with its use X-Git-Tag: 6.0.2~4^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24afd12d8d35b332171610d3f08252c32d3f2ab3;p=graphviz sfio sfsync: realign 'pool' type with its use Squashes a -Wsign-conversion warning. --- diff --git a/lib/sfio/sfsync.c b/lib/sfio/sfsync.c index 6902ddc85..d04812542 100644 --- a/lib/sfio/sfsync.c +++ b/lib/sfio/sfsync.c @@ -105,7 +105,7 @@ int sfsync(Sfio_t * f) goto next; if ((f->mode & SF_WRITE) && (f->next > f->data || (f->bits & SF_HOLE))) { /* sync the buffer, make sure pool don't move */ - int pool = f->mode & SF_POOL; + unsigned pool = f->mode & SF_POOL; f->mode &= ~SF_POOL; if (f->next > f->data && (SFWRALL(f), SFFLSBUF(f, -1)) < 0) rv = -1;