]> granicus.if.org Git - graphviz/commitdiff
sfio sfsync: realign 'mode' type with its use
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 7 Oct 2022 03:25:30 +0000 (20:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Oct 2022 03:33:01 +0000 (20:33 -0700)
Squashes a -Wsign-conversion warning.

lib/sfio/sfsync.c

index d0481254229c54c5454f798684c0bed2f4269ad3..890e7a9100f44e30dc9bae9913f05171f0a592a3 100644 (file)
@@ -69,7 +69,7 @@ static int _sfall(void)
  */
 int sfsync(Sfio_t * f)
 {
-    int local, rv, mode;
+    int local, rv;
     Sfio_t *origf;
 
     if (!(origf = f))
@@ -97,7 +97,7 @@ int sfsync(Sfio_t * f)
        SFLOCK(f, local);
 
        /* pretend that this stream is not on a stack */
-       mode = f->mode & SF_PUSH;
+       unsigned mode = f->mode & SF_PUSH;
        f->mode &= ~SF_PUSH;
 
        /* these streams do not need synchronization */