From: Matthew Fernandez Date: Sun, 9 Aug 2020 03:16:56 +0000 (-0700) Subject: remove another -Wconversion flags warning X-Git-Tag: 2.46.0~20^2^2~124^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dfc1cc52bbb45715cc3a9c00d57a88b8cadbad3;p=graphviz remove another -Wconversion flags warning --- diff --git a/lib/sfio/sfseek.c b/lib/sfio/sfseek.c index dceb990fc..bcf81c862 100644 --- a/lib/sfio/sfseek.c +++ b/lib/sfio/sfseek.c @@ -52,7 +52,7 @@ Sfoff_t sfseek(Sfio_t * f, Sfoff_t p, int type) /* set and initialize the stream to a definite mode */ if ((int) SFMODE(f, local) != (mode = f->mode & SF_RDWR)) { - int flags = f->flags; + unsigned short flags = f->flags; if (hardseek & SF_PUBLIC) /* seek ptr must follow file descriptor */ f->flags |= SF_SHARE | SF_PUBLIC;