From: Matthew Fernandez Date: Sun, 9 Aug 2020 02:38:07 +0000 (-0700) Subject: avoid mixing int and short unsigned wrt flags X-Git-Tag: 2.46.0~20^2^2~124^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19597849bdd2f5aff97a0743d929c4ec47274dd4;p=graphviz avoid mixing int and short unsigned wrt flags --- diff --git a/lib/sfio/sfdisc.c b/lib/sfio/sfdisc.c index afb6be776..6500ea859 100644 --- a/lib/sfio/sfdisc.c +++ b/lib/sfio/sfdisc.c @@ -130,7 +130,7 @@ Sfdisc_t *sfdisc(reg Sfio_t * f, reg Sfdisc_t * disc) else if (f->data == f->tiny) sfsetbuf(f, NIL(void *), 0); else { - int flags = f->flags; + unsigned short flags = f->flags; sfsetbuf(f, (void *) f->data, f->size); f->flags |= (flags & SF_MALLOC); }