From 6f53626103cdebea1247efdc7a30d8db21627b02 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 6 Oct 2022 20:00:33 -0700 Subject: [PATCH] sfio sfswap: realign 'f1mode' type with its use Squashes three -Wsign-conversion warnings. --- lib/sfio/sfswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sfio/sfswap.c b/lib/sfio/sfswap.c index 73194dc66..89cd82ac0 100644 --- a/lib/sfio/sfswap.c +++ b/lib/sfio/sfswap.c @@ -22,7 +22,7 @@ Sfio_t *sfswap(Sfio_t * f1, Sfio_t * f2) { Sfio_t tmp; - int f1pool, f2pool, f1mode, f1flags, f2flags; + int f1pool, f2pool, f1flags, f2flags; unsigned f2mode; if (!f1 || (f1->mode & SF_AVAIL) @@ -33,7 +33,7 @@ Sfio_t *sfswap(Sfio_t * f1, Sfio_t * f2) if (f1 == f2) return f2; - f1mode = f1->mode; + unsigned f1mode = f1->mode; SFLOCK(f1, 0); f1->mode |= SF_PUSH; /* make sure there is no recursion on f1 */ -- 2.40.0