sfio sfsync: realign 'pool' type with its use
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 7 Oct 2022 03:13:09 +0000 (20:13 -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 6902ddc85a0aa0e4388406f5af7ce98691fc536b..d0481254229c54c5454f798684c0bed2f4269ad3 100644 (file)
@@ -105,7 +105,7 @@ int sfsync(Sfio_t * f)
            goto next;
 
        if ((f->mode & SF_WRITE) && (f->next > f->data || (f->bits & SF_HOLE))) {       /* sync the buffer, make sure pool don't move */
-           int pool = f->mode & SF_POOL;
+           unsigned pool = f->mode & SF_POOL;
            f->mode &= ~SF_POOL;
            if (f->next > f->data && (SFWRALL(f), SFFLSBUF(f, -1)) < 0)
                rv = -1;