From: Matthew Fernandez Date: Sun, 9 Aug 2020 03:17:09 +0000 (-0700) Subject: remove yet another -Wconversion warning X-Git-Tag: 2.46.0~20^2^2~124^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5de49e6ea93ef70960c2844bfcdafa591021f228;p=graphviz remove yet another -Wconversion warning --- diff --git a/lib/sfio/sfsetbuf.c b/lib/sfio/sfsetbuf.c index 2d25ee95c..302865aa8 100644 --- a/lib/sfio/sfsetbuf.c +++ b/lib/sfio/sfsetbuf.c @@ -273,7 +273,7 @@ void *sfsetbuf(reg Sfio_t * f, reg void * buf, reg size_t size) f->endb = f->data + size; } - f->flags = (f->flags & ~SF_MALLOC) | sf_malloc; + f->flags = (unsigned short)((f->flags & ~SF_MALLOC) | sf_malloc); if (obuf && obuf != f->data && osize > 0 && (oflags & SF_MALLOC)) { free((void *) obuf);