]> granicus.if.org Git - graphviz/commitdiff
remove another -Wconversion flags warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 9 Aug 2020 03:16:56 +0000 (20:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 Aug 2020 14:46:30 +0000 (07:46 -0700)
lib/sfio/sfseek.c

index dceb990fc570daaa8d358b2b74ad5969523107c6..bcf81c862cc8aed729ada15ab1fbccd86c89c01a 100644 (file)
@@ -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;