]> granicus.if.org Git - graphviz/commitdiff
avoid mixing int and short unsigned wrt flags
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 9 Aug 2020 02:38:07 +0000 (19:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 Aug 2020 14:46:30 +0000 (07:46 -0700)
lib/sfio/sfdisc.c

index afb6be7766455fcfa2283dfd6cc8832e1fa2d536..6500ea859ac97e60922d8b7cb6de8970dc6a543d 100644 (file)
@@ -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);
            }