From 3dfc1cc52bbb45715cc3a9c00d57a88b8cadbad3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 8 Aug 2020 20:16:56 -0700 Subject: [PATCH] remove another -Wconversion flags warning --- lib/sfio/sfseek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sfio/sfseek.c b/lib/sfio/sfseek.c index dceb990fc..bcf81c862 100644 --- a/lib/sfio/sfseek.c +++ b/lib/sfio/sfseek.c @@ -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; -- 2.50.1